Skip to content

Commit

Permalink
Settings: Added docs to server voice settings (#1496)
Browse files Browse the repository at this point in the history
![image](https://github.com/TTT-2/TTT2/assets/13639408/a11e1bfe-0011-4d57-b022-576a5f284ed1)

---------

Co-authored-by: Histalek <16392835+Histalek@users.noreply.github.com>
  • Loading branch information
TimGoll and Histalek authored Mar 31, 2024
1 parent 17f9d99 commit 88c8e8d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lua/terrortown/lang/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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."
12 changes: 11 additions & 1 deletion lua/terrortown/menus/gamemode/administration/chat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 88c8e8d

Please sign in to comment.