mod: simplify player ShouldNotCollide

This commit is contained in:
2022-07-17 20:46:55 +08:00
parent 327f686f62
commit 690035b3dd
Signed by: LuoRain
GPG key ID: 16B4D3D5372966A6

View file

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