Skip to content

Commit

Permalink
small finishing touches
Browse files Browse the repository at this point in the history
  • Loading branch information
TimGoll committed Feb 16, 2020
1 parent 230cb43 commit 2ff4e3d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
--- Special button usable from range if your role has access to it

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

if SERVER then
local cv_tbutton = CreateConVar("ttt2_tbutton_admin_show", "0", {FCVAR_ARCHIVE, FCVAR_NOTIFY}, "Always show the buttons to admins in range", 0, 1)

hook.Add("TTT2SyncGlobals", "AddTButtonGlobals", function()
SetGlobalBool(cv_tbutton:GetName(), cv_tbutton:GetBool())
end)
Expand Down
8 changes: 4 additions & 4 deletions gamemodes/terrortown/gamemode/client/cl_changes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -611,10 +611,10 @@ function CreateChanges()
<li>Fixed a bug with baserole initialization</li>
<li>Small other bugfixes</li>
<li>added legacy supported for limited items</li>
<li>fixed C4 defuse for non-traitor roles</li>
<li>fixed radio, works now for all roles</li>
<li>restricted huds are hidden in HUD Switcher</li>
<li>fixed ragdoll skins (hairstyles, outfits, ...)</li>
<li>Fixed C4 defuse for non-traitor roles</li>
<li>Fixed radio, works now for all roles</li>
<li>Restricted huds are hidden in HUD Switcher</li>
<li>Fixed ragdoll skins (hairstyles, outfits, ...)</li>
<li>Prevent give_equipment timer to block the shop in the next round</li>
<li>Fix sprint consuming stamina when there is no move input</li>
<li>Fix confirmation of players with no team</li>
Expand Down
11 changes: 5 additions & 6 deletions gamemodes/terrortown/gamemode/client/cl_help.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,14 @@ local function AddBindingCategory(category, parent)

-- onchange function
function dPBinder:OnChange(num)
if num == 0 then
bind.Remove(curBinding, binding.name)
else
bind.Remove(curBinding, binding.name)
bind.Add(num, binding.name, true)
bind.Remove(curBinding, binding.name, true)

LocalPlayer():ChatPrint(GetPTranslation("ttt2_bindings_new", {name = binding.name, key = input.GetKeyName(num)}))
if num ~= 0 then
bind.Add(num, binding.name, true)
end

LocalPlayer():ChatPrint(GetPTranslation("ttt2_bindings_new", {name = binding.name, key = input.GetKeyName(num) or "NONE"}))

curBinding = num
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ if CLIENT then

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

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

0 comments on commit 2ff4e3d

Please sign in to comment.