Skip to content

Commit

Permalink
Client: Allow to regulate volume for hud_saytext_sound
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyAG authored and tmp64 committed Dec 3, 2023
1 parent af279ac commit 1857a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/client/hud/chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1340,8 +1340,8 @@ void CHudChat::ChatPrintf(int iPlayerIndex, const char *fmt, ...)
line->InsertAndColorizeText(wbuf, iPlayerIndex);
}

if (hud_saytext.GetBool() && hud_saytext_sound.GetBool())
PlaySound(m_pszChatSoundPath, 1);
if (hud_saytext.GetBool() && hud_saytext_sound.GetFloat() > 0)
PlaySound(m_pszChatSoundPath, hud_saytext_sound.GetFloat());

// Print to console
time_t now;
Expand Down

0 comments on commit 1857a25

Please sign in to comment.