From 6ecc246e57fde44badd5978be75bed3f93155a6b Mon Sep 17 00:00:00 2001 From: Ben Date: Sun, 5 Apr 2015 22:00:54 +0100 Subject: [PATCH] Fixed zombies being able to hold onto props during team change --- .../entities/entities/status_human_holding/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/zombiesurvival/entities/entities/status_human_holding/init.lua b/gamemodes/zombiesurvival/entities/entities/status_human_holding/init.lua index a5ec45e..8789f61 100644 --- a/gamemodes/zombiesurvival/entities/entities/status_human_holding/init.lua +++ b/gamemodes/zombiesurvival/entities/entities/status_human_holding/init.lua @@ -131,7 +131,7 @@ function ENT:Think() local object = self:GetObject() local owner = self:GetOwner() - if not object:IsValid() or object:IsNailed() or not owner:IsValid() or not owner:Alive() then + if not object:IsValid() or object:IsNailed() or not owner:IsValid() or not owner:Alive() or not owner:Team() == TEAM_HUMAN then self:Remove() return end