Skip to content

Commit

Permalink
Fix suit recharge sound constantly looping
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Oct 2, 2023
1 parent a207249 commit 04eb824
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions binary/dlls/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,7 @@ void ClientPrecache( void )
PRECACHE_SOUND("items/suitchargeno1.wav");
PRECACHE_SOUND("items/suitchargeok1.wav");
PRECACHE_SOUND("items/suitcharge1.wav");
PRECACHE_SOUND("items/suitcharge_no_lp.wav");

PRECACHE_SOUND("player/friend_online.wav");
PRECACHE_SOUND("player/friend_join.wav");
Expand Down
4 changes: 2 additions & 2 deletions binary/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4676,9 +4676,9 @@ void CBasePlayer :: UpdateClientData( void )
}
else // as it's recharging
{
STOP_SOUND(ENT(pev), CHAN_STATIC, "buttons/blip1.wav");
STOP_SOUND(ENT(pev), CHAN_STATIC, "items/suitcharge_no_lp.wav");
// too loud
EMIT_SOUND(ENT(pev), CHAN_STATIC, "buttons/blip1.wav", 0.25, ATTN_NORM);
EMIT_SOUND(ENT(pev), CHAN_STATIC, "buttons/suitcharge_no_lp.wav", 0.25, ATTN_NORM);
}

m_flNextSuitRegenTime = gpGlobals->time + sv_aura_regeneration_wait.value;
Expand Down

0 comments on commit 04eb824

Please sign in to comment.