From 1857a251710b126224f03f858ac1dbb6e40986e0 Mon Sep 17 00:00:00 2001 From: SmileyAG <58108407+SmileyAG@users.noreply.github.com> Date: Mon, 7 Mar 2022 04:31:16 +0400 Subject: [PATCH] Client: Allow to regulate volume for hud_saytext_sound --- src/game/client/hud/chat.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game/client/hud/chat.cpp b/src/game/client/hud/chat.cpp index 0f9f683..f2a5887 100644 --- a/src/game/client/hud/chat.cpp +++ b/src/game/client/hud/chat.cpp @@ -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;