mirror of
https://github.com/HaodongMo/ArcCW.git
synced 2025-03-04 03:13:30 -05:00
WRONG
This commit is contained in:
parent
4e3b347bf8
commit
bd47128346
@ -123,7 +123,7 @@ hook.Add( "OnEntityCreated", "ArcCW_NPCWeaponReplacement", function(ent)
|
||||
ent:Give(wpn)
|
||||
end
|
||||
end)
|
||||
elseif ent:IsWeapon() and ((engine.ActiveGamemode() == "terrortown" and !ArcCW.ConVars["ttt_replace"]:GetBool()) or (engine.ActiveGamemode() != "terrortown" and ArcCW.ConVars["npc_replace"]:GetBool())) then
|
||||
elseif ent:IsWeapon() and ((engine.ActiveGamemode() == "terrortown" and ArcCW.ConVars["ttt_replace"]:GetBool()) or (engine.ActiveGamemode() != "terrortown" and ArcCW.ConVars["npc_replace"]:GetBool())) then
|
||||
timer.Simple(0, function()
|
||||
if !ent:IsValid() then return end
|
||||
if IsValid(ent:GetOwner()) then return end
|
||||
|
@ -396,9 +396,10 @@ function SWEP:OnDrop()
|
||||
self.Primary.DefaultClip = 1
|
||||
end
|
||||
|
||||
if engine.ActiveGamemode() == "terrortown" then
|
||||
self.UnReady = true
|
||||
else
|
||||
self.UnReady = false
|
||||
end
|
||||
self.UnReady = false
|
||||
-- if engine.ActiveGamemode() == "terrortown" then
|
||||
-- self.UnReady = true
|
||||
-- else
|
||||
-- self.UnReady = false
|
||||
-- end
|
||||
end
|
Loading…
Reference in New Issue
Block a user