Skip to content

Commit

Permalink
Shield sounds being ANNOYING fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sabianroberts committed Sep 12, 2024
1 parent 6a21c3a commit bac7db6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cl_dll/battery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 #
Expand Down

0 comments on commit bac7db6

Please sign in to comment.