This commit is contained in:
speedvoltage 2025-03-29 21:43:58 +01:00 committed by GitHub
commit 6294c28151
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -576,9 +576,10 @@ void CHL2_Player::HandleSpeedChanges( CMoveData *mv )
void CHL2_Player::ReduceTimers( CMoveData *mv )
{
bool bPlayerNotMoving = mv->m_vecVelocity.Length() < 0.1f;
bool bSprinting = mv->m_flClientMaxSpeed == HL2_SPRINT_SPEED;
if ( bSprinting )
if ( bSprinting && !bPlayerNotMoving )
{
SuitPower_AddDevice( SuitDeviceSprint );
}