Merge pull request #2 from BClark09/patch-2

Fixed OnLastHuman constantly firing for logic_infliction
This commit is contained in:
William Moodhe / JetBoom 2014-10-27 22:43:13 -04:00
commit a1f1ccffa6

View file

@ -1059,14 +1059,14 @@ function GM:LastHuman(pl)
net.WriteEntity(pl or NULL)
net.Broadcast()
for _, ent in pairs(ents.FindByClass("logic_infliction")) do
ent:Input("onlasthuman", pl, pl, pl and pl:IsValid() and pl:EntIndex() or -1)
end
LASTHUMAN = true
end
self.TheLastHuman = pl
for _, ent in pairs(ents.FindByClass("logic_infliction")) do
ent:Input("onlasthuman", pl, pl, pl and pl:IsValid() and pl:EntIndex() or -1)
end
end
function GM:PlayerHealedTeamMember(pl, other, health, wep)