Skip to content

Commit

Permalink
Send a message to CL to stop shield_charge.wav
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Sep 7, 2024
1 parent 48e6380 commit 20aef19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions binary/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4657,6 +4657,7 @@ void CBasePlayer :: UpdateClientData( void )
}

// BlueNightHawk : Suit Energy Regeneration
#define MSG_STOP_SOUND 100
if (sv_aura_regeneration.value != 0 && pev->armorvalue < MAX_NORMAL_BATTERY
&& m_flNextSuitRegenTime < gpGlobals->time)
{
Expand All @@ -4675,6 +4676,8 @@ void CBasePlayer :: UpdateClientData( void )
m_fRegenOn = true;
EMIT_SOUND(ENT(pev), CHAN_AUTO, "items/suitchargeok1.wav", 0.85, ATTN_NORM);
STOP_SOUND(ENT(pev), CHAN_AUTO, "player/shield_empty.wav");
MESSAGE_BEGIN(MSG_ONE, MSG_STOP_SOUND, NULL);
MESSAGE_END();
}
else // as it's recharging
{
Expand Down

0 comments on commit 20aef19

Please sign in to comment.