Skip to content

Commit

Permalink
hotfix for tttc_traitorbuy
Browse files Browse the repository at this point in the history
  • Loading branch information
lebroomer committed Mar 3, 2019
1 parent 283d1f2 commit d0d90c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/classes/shared/hooks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,11 @@ hook.Add("PlayerPostThink", "TTTCSetWeaponKind", function(ply)
if GetConVar("tttc_traitorbuy"):GetBool() and not ply.TTTCKindSet then
for _, w in pairs(ply:GetWeapons()) do
if w:GetNWBool("TTTC_class_weapon") then
w.Kind = -1
w.Slot = 10
w.Kind = WEAPON_EXTRA
w.Doublicated = true

ply.TTTCKindSet = true
ply.refresh_inventory_cache = true
end
end
end
Expand Down

0 comments on commit d0d90c3

Please sign in to comment.