mirror of
https://gitlab.com/hoggit/developers/hoggit.git
synced 2026-08-30 03:37:44 +00:00
Added CRASH event to dead check to catch planes getting killed as well
This commit is contained in:
+2
-1
@@ -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
|
||||
@@ -252,5 +252,6 @@ HOGGIT._deathHandler = function(event)
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
mist.addEventHandler(HOGGIT._deathHandler)
|
||||
|
||||
Reference in New Issue
Block a user