Skip to content

Commit

Permalink
Use better sound for SER
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Aug 24, 2023
1 parent 8aea9da commit de67093
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions binary/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4665,20 +4665,19 @@ void CBasePlayer :: UpdateClientData( void )
{
m_flNextSuitRegenTime = 0.0f;
m_fRegenOn = false;
STOP_SOUND(ENT(pev), CHAN_BODY, "player/shield_charge.wav");
//EMIT_SOUND(ENT(pev), CHAN_ITEM, "items/suitchargeno1.wav", 0.85, ATTN_NORM);
STOP_SOUND(ENT(pev), CHAN_STATIC, "items/suitcharge1.wav");
EMIT_SOUND(ENT(pev), CHAN_ITEM, "items/suitchargeno1.wav", 0.85, ATTN_NORM);
}
else if (!m_fRegenOn) // when shield starts recharging
{
m_fRegenOn = true;
//EMIT_SOUND(ENT(pev), CHAN_ITEM, "items/suitchargeok1.wav", 0.85, ATTN_NORM);
EMIT_SOUND(ENT(pev), CHAN_BODY, "player/shield_charge.wav", 0.85, ATTN_NORM);
EMIT_SOUND(ENT(pev), CHAN_ITEM, "items/suitchargeok1.wav", 0.85, ATTN_NORM);
}
else // as it's recharging
{
STOP_SOUND(ENT(pev), CHAN_STATIC, "player/shield_charge.wav");
STOP_SOUND(ENT(pev), CHAN_STATIC, "items/suitcharge1.wav");
// too loud
//EMIT_SOUND(ENT(pev), CHAN_STATIC, "player/shield_charge.wav", 0.25, ATTN_NORM);
EMIT_SOUND(ENT(pev), CHAN_STATIC, "items/suitcharge1.wav", 0.25, ATTN_NORM);
}

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

0 comments on commit de67093

Please sign in to comment.