Skip to content

Commit 2ff4e3d

Browse files
committed
small finishing touches
1 parent 230cb43 commit 2ff4e3d

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

gamemodes/terrortown/entities/entities/ttt_traitor_button/shared.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
--- Special button usable from range if your role has access to it
22

3-
local cv_tbutton = CreateConVar("ttt2_tbutton_admin_show", "0", {FCVAR_ARCHIVE, FCVAR_NOTIFY}, "Always show the buttons to admins in range", 0, 1)
43

54
if SERVER then
5+
local cv_tbutton = CreateConVar("ttt2_tbutton_admin_show", "0", {FCVAR_ARCHIVE, FCVAR_NOTIFY}, "Always show the buttons to admins in range", 0, 1)
6+
67
hook.Add("TTT2SyncGlobals", "AddTButtonGlobals", function()
78
SetGlobalBool(cv_tbutton:GetName(), cv_tbutton:GetBool())
89
end)

gamemodes/terrortown/gamemode/client/cl_changes.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,10 @@ function CreateChanges()
611611
<li>Fixed a bug with baserole initialization</li>
612612
<li>Small other bugfixes</li>
613613
<li>added legacy supported for limited items</li>
614-
<li>fixed C4 defuse for non-traitor roles</li>
615-
<li>fixed radio, works now for all roles</li>
616-
<li>restricted huds are hidden in HUD Switcher</li>
617-
<li>fixed ragdoll skins (hairstyles, outfits, ...)</li>
614+
<li>Fixed C4 defuse for non-traitor roles</li>
615+
<li>Fixed radio, works now for all roles</li>
616+
<li>Restricted huds are hidden in HUD Switcher</li>
617+
<li>Fixed ragdoll skins (hairstyles, outfits, ...)</li>
618618
<li>Prevent give_equipment timer to block the shop in the next round</li>
619619
<li>Fix sprint consuming stamina when there is no move input</li>
620620
<li>Fix confirmation of players with no team</li>

gamemodes/terrortown/gamemode/client/cl_help.lua

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,14 @@ local function AddBindingCategory(category, parent)
9292

9393
-- onchange function
9494
function dPBinder:OnChange(num)
95-
if num == 0 then
96-
bind.Remove(curBinding, binding.name)
97-
else
98-
bind.Remove(curBinding, binding.name)
99-
bind.Add(num, binding.name, true)
95+
bind.Remove(curBinding, binding.name, true)
10096

101-
LocalPlayer():ChatPrint(GetPTranslation("ttt2_bindings_new", {name = binding.name, key = input.GetKeyName(num)}))
97+
if num ~= 0 then
98+
bind.Add(num, binding.name, true)
10299
end
103100

101+
LocalPlayer():ChatPrint(GetPTranslation("ttt2_bindings_new", {name = binding.name, key = input.GetKeyName(num) or "NONE"}))
102+
104103
curBinding = num
105104
end
106105
end

gamemodes/terrortown/gamemode/shared/hud_elements/tttminiscoreboard/pure_skin_miniscoreboard.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ if CLIENT then
4747

4848
-- resort miniscoreboard if body_found is changed
4949
TTT2NET:OnUpdate("players", function(oldval, newval, reversePath)
50+
-- check if path of changed value is one of our releavant paths
5051
if not refreshPaths[reversePath[2]] then return end
5152

5253
-- sort playerlist: confirmed players should be in the first position

0 commit comments

Comments
 (0)