Skip to content

Commit

Permalink
Fix function stopping the wrong sound
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Nov 18, 2024
1 parent b53b40b commit 888e26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SourceCode/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ int CBasePlayer :: TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker,
// BlueNightHawk : Suit Energy Regeneration || after damage taken!!
if (sv_aura_regeneration.value != 0 && pev->armorvalue < MAX_NORMAL_BATTERY && fTookDamage)
{
STOP_SOUND(ENT(pev), CHAN_STATIC, "items/suitcharge1.wav");
STOP_SOUND(ENT(pev), CHAN_STATIC, "items/suitcharge_no_lp.wav");
if (m_fRegenOn == true)
EMIT_SOUND(ENT(pev), CHAN_ITEM, "player/shield_disrupted.wav", 0.85, ATTN_NORM); // low-pitched elevbell
m_flNextSuitRegenTime = gpGlobals->time + 5.5 + sv_aura_regeneration_wait.value;
Expand Down

0 comments on commit 888e26a

Please sign in to comment.