From 690035b3dda198e80ba9a0f3b8118eb4dfeae046 Mon Sep 17 00:00:00 2001 From: YUCLing Date: Sun, 17 Jul 2022 20:46:55 +0800 Subject: [PATCH] mod: simplify player ShouldNotCollide --- gamemodes/zombiesurvival/gamemode/obj_player_extend.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gamemodes/zombiesurvival/gamemode/obj_player_extend.lua b/gamemodes/zombiesurvival/gamemode/obj_player_extend.lua index dfbbd4e..db3961d 100644 --- a/gamemodes/zombiesurvival/gamemode/obj_player_extend.lua +++ b/gamemodes/zombiesurvival/gamemode/obj_player_extend.lua @@ -652,11 +652,7 @@ end function meta:ShouldNotCollide(ent) if E_IsValid(ent) then if getmetatable(ent) == meta then - if P_Team(self) == P_Team(ent) or E_GetTable(self).NoCollideAll or E_GetTable(ent).NoCollideAll then - return true - end - - return false + return P_Team(self) == P_Team(ent) or E_GetTable(self).NoCollideAll or E_GetTable(ent).NoCollideAll end return E_GetDTBool(self, 0) and ent:IsBarricadeProp()