This commit is contained in:
TheOnly8Z 2023-10-10 14:22:18 -07:00
parent 4e3b347bf8
commit bd47128346
2 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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