Skip to content

Commit

Permalink
better check for armorvalue sound
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Nov 28, 2024
1 parent b380cfe commit c01d44a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SourceCode/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4685,7 +4685,7 @@ void CBasePlayer :: UpdateClientData( void )
}
else if (sv_aura_regeneration.value != 0) // IsObserver || !IsAlive
{
if (pev->armorvalue <= 0)
if (pev->armorvalue < 1)
{
if (!isShieldEmpty && (currentTime - lastShieldSoundTime > 1.0f))
{
Expand All @@ -4705,7 +4705,7 @@ void CBasePlayer :: UpdateClientData( void )
}
}

if (pev->armorvalue < 10)
if (pev->armorvalue >= 1 && pev->armorvalue <= 10)
{
if (!isShieldLow && (currentTime - lastShieldSoundTime > 1.0f)) // 1 second delay
{
Expand Down

0 comments on commit c01d44a

Please sign in to comment.