ReGameDLL_CS icon indicating copy to clipboard operation
ReGameDLL_CS copied to clipboard

fast fire glitch

Open JUNESYNGOTOFLEX opened this issue 3 years ago • 6 comments

if you take sg552/aug and hold fire (with scope) you fire speed is slowly than usually, but if you flags ~FL_ONGROUND you fire speed faster than m249, fix please

JUNESYNGOTOFLEX avatar Nov 06 '21 13:11 JUNESYNGOTOFLEX

Is this a bug or it's intended? Conditions are made to take priority on firing when a player isn't on ground.

https://github.com/s1lentq/ReGameDLL_CS/blob/b979b5e84f36dc0eb870f97da670b700756217f1/regamedll/dlls/wpn_shared/wpn_aug.cpp#L81-L96

https://github.com/s1lentq/ReGameDLL_CS/blob/b979b5e84f36dc0eb870f97da670b700756217f1/regamedll/dlls/wpn_shared/wpn_sg552.cpp#L80-L95

aleeperezz16 avatar Nov 06 '21 15:11 aleeperezz16

It seems to be a bug because they forgot about check FOV for change Fire Speed (CycleTime) at that conditions. You can verify the bug in a ladder with AUG or SG552 shooting with scope active.

Fixed by this (only on AUG, but you get the idea): Or can move the FOV check inside AUGFire/SG552Fire and change CycleTime there

if (!(m_pPlayer->pev->flags & FL_ONGROUND)) 
{ 
 	if (m_pPlayer->pev->fov == DEFAULT_FOV) 
 	{ 
 	 	AUGFire(0.035 + (0.4 * m_flAccuracy), 0.0825, FALSE); 
 	} 
 	else 
 	{ 
 	 	AUGFire(0.035 + (0.4 * m_flAccuracy), 0.135, FALSE); 
  	}
} 
else if (m_pPlayer->pev->velocity.Length2D() > 140) 
{ 
 	if (m_pPlayer->pev->fov == DEFAULT_FOV) 
 	{ 
 	 	AUGFire(0.035 + (0.07 * m_flAccuracy), 0.0825, FALSE); 
 	} 
 	else 
 	{ 
 	 	AUGFire(0.035 + (0.07 * m_flAccuracy), 0.135, FALSE); 
  	}
} 
else if (m_pPlayer->pev->fov == DEFAULT_FOV) 
{ 
 	AUGFire(0.02 * m_flAccuracy, 0.0825, FALSE); 
} 
else 
{ 
 	AUGFire(0.02 * m_flAccuracy, 0.135, FALSE); 
}

RauliTop avatar Nov 11 '21 13:11 RauliTop

What do you think @wopox1337?

RauliTop avatar Nov 15 '21 09:11 RauliTop

@RauliTop she's is dead

Vaqtincha avatar Nov 16 '21 10:11 Vaqtincha

At this point, we can't say for sure if this behavior is a bug or if it's designed that way. We could be guided by CSS & CS:GO, but it still doesn't seem right to determine the truth.

At the same time, I do not see a logical explanation for this behavior. If we keep changing the shared code of weapons for the server side, at some point in time we will get more and more out of sync with the client side (prediction) and this will adversely affect the overall experience of the game for the average player.

I propose to leave this behavior "as is".

wopox1337 avatar Nov 16 '21 10:11 wopox1337

If we keep changing the shared code of weapons for the server side, at some point in time we will get more and more out of sync with the client side (prediction) and this will adversely affect the overall experience of the game for the average player.

I propose to leave this behavior "as is".

but https://github.com/s1lentq/ReGameDLL_CS/pull/670 is merged...

RauliTop avatar Jul 23 '22 15:07 RauliTop