From bac7db66ecc96b56812146b6affb83f88099e56c Mon Sep 17 00:00:00 2001 From: Sabian Roberts <31491602+sabianroberts@users.noreply.github.com> Date: Thu, 12 Sep 2024 23:14:50 +0100 Subject: [PATCH] Shield sounds being ANNOYING fix --- cl_dll/battery.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cl_dll/battery.cpp b/cl_dll/battery.cpp index 5137ac7..2e9818c 100644 --- a/cl_dll/battery.cpp +++ b/cl_dll/battery.cpp @@ -136,6 +136,12 @@ int CHudBattery::Draw(float flTime) if (m_iBat <= 0) { PlaySound("player/shield_empty.wav", 1); + // PlaySound("player/shield_low.wav", 0); + } + + if (m_iBat >= 1) + { + PlaySound("player/shield_empty.wav", 0); } if (m_iBat <= 10) @@ -150,7 +156,7 @@ int CHudBattery::Draw(float flTime) else { Blinking = false; - gEngfuncs.pfnHookUserMsg("StopSound", MsgFunc_StopSound); + // gEngfuncs.pfnHookUserMsg("StopSound", MsgFunc_StopSound); // gEngfuncs.pfnConsolePrint("StopSound MSG successfully broadcast\n"); if (0 != m_fFade) // Has health changed? Flash the health #