mod: simplify player ShouldNotCollide
This commit is contained in:
parent
327f686f62
commit
690035b3dd
1 changed files with 1 additions and 5 deletions
|
@ -652,11 +652,7 @@ end
|
||||||
function meta:ShouldNotCollide(ent)
|
function meta:ShouldNotCollide(ent)
|
||||||
if E_IsValid(ent) then
|
if E_IsValid(ent) then
|
||||||
if getmetatable(ent) == meta 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 P_Team(self) == P_Team(ent) or E_GetTable(self).NoCollideAll or E_GetTable(ent).NoCollideAll
|
||||||
return true
|
|
||||||
end
|
|
||||||
|
|
||||||
return false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return E_GetDTBool(self, 0) and ent:IsBarricadeProp()
|
return E_GetDTBool(self, 0) and ent:IsBarricadeProp()
|
||||||
|
|
Loading…
Reference in a new issue