mirror of
https://gitlab.com/hoggit/developers/hoggit.git
synced 2025-11-10 15:43:28 +00:00
Added CRASH event to dead check to catch planes getting killed as well
This commit is contained in:
parent
2b54280fd2
commit
f09435fc72
@ -193,7 +193,7 @@ HOGGIT.setZombie = function(group, spawner, state)
|
||||
end
|
||||
|
||||
HOGGIT._deathHandler = function(event)
|
||||
if event.id ~= world.event.S_EVENT_DEAD then return end
|
||||
if event.id == world.event.S_EVENT_CRASH or event.id == world.event.S_EVENT_DEAD then
|
||||
HOGGIT.debug_text("SOMETHING DEAD YO", 10)
|
||||
if not event.initiator then return end
|
||||
if not event.initiator.getGroup then return end
|
||||
@ -253,4 +253,5 @@ HOGGIT._deathHandler = function(event)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
mist.addEventHandler(HOGGIT._deathHandler)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user