From de670938c2807fbba3d8488bfedffbdab4867ff3 Mon Sep 17 00:00:00 2001 From: Sabian Roberts <31491602+sabianroberts@users.noreply.github.com> Date: Thu, 24 Aug 2023 11:19:39 +0100 Subject: [PATCH] Use better sound for SER --- binary/dlls/player.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/binary/dlls/player.cpp b/binary/dlls/player.cpp index b1d74759..2cb41b59 100644 --- a/binary/dlls/player.cpp +++ b/binary/dlls/player.cpp @@ -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;