From 88c8e8d25e9bdcdec3d66c41a018fd6e483636bb Mon Sep 17 00:00:00 2001 From: Tim Goll Date: Sun, 31 Mar 2024 16:00:59 +0200 Subject: [PATCH] Settings: Added docs to server voice settings (#1496) ![image](https://github.com/TTT-2/TTT2/assets/13639408/a11e1bfe-0011-4d57-b022-576a5f284ed1) --------- Co-authored-by: Histalek <16392835+Histalek@users.noreply.github.com> --- lua/terrortown/lang/en.lua | 4 ++++ .../menus/gamemode/administration/chat.lua | 12 +++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/lua/terrortown/lang/en.lua b/lua/terrortown/lang/en.lua index cf0c8fa972..4af52a9b18 100644 --- a/lua/terrortown/lang/en.lua +++ b/lua/terrortown/lang/en.lua @@ -2215,4 +2215,8 @@ L.label_crosshair_static_gap_length = "Enable static crosshair gap length" L.label_crosshair_size_gap = "Crosshair gap size multiplier" -- 2024-03-31 +L.help_locational_voice = "Proximity chat is TTT2's implementation of locational 3D voice. Players are only audible in a set radius around them and become quieter the farther away they are." +L.help_locational_voice_prep = [[By default the proximity chat is disabled in the preparing phase. Change this convar to also use proximity chat in the preparing phase. + +Note: Proximity chat is always disabled during the post round phase.]] L.help_voice_duck_spectator = "Ducking spectators makes other spectators quieter in comparison to living players. This can be useful if one wants to listen closely to the discussions of the living players." diff --git a/lua/terrortown/menus/gamemode/administration/chat.lua b/lua/terrortown/menus/gamemode/administration/chat.lua index 32d2f2e7d8..460dce5a05 100644 --- a/lua/terrortown/menus/gamemode/administration/chat.lua +++ b/lua/terrortown/menus/gamemode/administration/chat.lua @@ -53,14 +53,24 @@ function CLGAMEMODESUBMENU:Populate(parent) local form3 = vgui.CreateTTT2Form(parent, "header_voicechat_locational") - form3:MakeCheckBox({ + form3:MakeHelp({ + label = "help_locational_voice", + }) + + local enbLocVoice = form3:MakeCheckBox({ serverConvar = "ttt_locational_voice", label = "label_locational_voice", }) + form3:MakeHelp({ + label = "help_locational_voice_prep", + master = enbLocVoice, + }) + form3:MakeCheckBox({ serverConvar = "ttt_locational_voice_prep", label = "label_locational_voice_prep", + master = enbLocVoice, }) local form4 = vgui.CreateTTT2Form(parent, "header_textchat")