You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: this isn't wholly a 'bug' as, per the explanation in hl2_player.cpp, in CHL2_Player::SuitPower_RemoveDevice(const CSuitPowerDevice &device), it is said that this is a "a defense against exploits where the player could rapidly tap sprint and never run out of power".
Indeed, removing the SuitPower_Drain(device.GetDeviceDrainRate() * 0.1f); from it prevents running out of suit power when tapping the button. And it makes it easy to exploit.
Perhaps an extra check could be added there to only do that if the player isn't stationary. Or perhaps it should be left alone.
Describe the bug
When you spam your sprint button while not moving, your stamina gets depleted.
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
If the player isn't running, then we shouldn't take stamina from him.
Additional context
(Optional) Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: