Skip to content

Commit

Permalink
add shield disrupted sound
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Nov 18, 2024
1 parent 2093213 commit b53b40b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions SourceCode/dlls/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,7 @@ void ClientPrecache( void )
PRECACHE_SOUND("player/geiger1.wav");

// BlueNightHawk : Suit Energy Regeneration
PRECACHE_SOUND("player/shield_disrupted.wav");
PRECACHE_SOUND("player/shield_depleted2.wav");
PRECACHE_SOUND("player/shield_low.wav");
PRECACHE_SOUND("player/shield_empty.wav");
Expand Down
5 changes: 2 additions & 3 deletions SourceCode/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -786,9 +786,8 @@ int CBasePlayer :: TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker,
if (sv_aura_regeneration.value != 0 && pev->armorvalue < MAX_NORMAL_BATTERY && fTookDamage)
{
STOP_SOUND(ENT(pev), CHAN_STATIC, "items/suitcharge1.wav");
// TODO Sabian: implement this sound
//if (m_fRegenOn == true)
// EMIT_SOUND(ENT(pev), CHAN_ITEM, "player/shield_disrupted.wav", 0.85, ATTN_NORM); // low-pitched elevbell
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;
}
return fTookDamage;
Expand Down

0 comments on commit b53b40b

Please sign in to comment.