Compare commits

..

2 commits

Author SHA1 Message Date
690035b3dd
mod: simplify player ShouldNotCollide 2022-07-17 20:46:55 +08:00
327f686f62
fix: typo 2022-07-14 18:05:29 +08:00
2 changed files with 2 additions and 6 deletions

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

View file

@ -75,7 +75,7 @@ Hook. Human kills a zombie.
GM:HumanKilledZombie(Player victim, Player attacker, DamageInfo dmginfo, Bool headshot, Bool wassuicide)
Hook. Zombie kills a human.
GM:HumanKilledZombie(Player victim, Player attacker, DamageInfo dmginfo, Bool headshot, Bool wassuicide)
GM:ZombieKilledHuman(Player victim, Player attacker, DamageInfo dmginfo, Bool headshot, Bool wassuicide)
SELF-EXPLANATORY HOOKS AND FUNCTIONS
GM:LoadMapEditorFile()