mirror of
https://gitlab.com/hoggit/developers/hoggit.git
synced 2025-11-10 15:43:28 +00:00
Fixes zombies.
- The respawn of zombies adds their new group to the zombie check.
This commit is contained in:
parent
da54b03054
commit
45523ae5bd
@ -239,17 +239,14 @@ HOGGIT._deathHandler = function(event)
|
|||||||
HOGGIT.zombies[grp] = nil
|
HOGGIT.zombies[grp] = nil
|
||||||
|
|
||||||
mist.scheduleFunction(function()
|
mist.scheduleFunction(function()
|
||||||
spawner.Spawn()
|
HOGGIT.setZombie(spawner.Spawn(), spawner, true)
|
||||||
end, {}, timer.getTime() + delay)
|
end, {}, timer.getTime() + delay)
|
||||||
end
|
end
|
||||||
HOGGIT.zombie_checks[spawner] = nil
|
HOGGIT.zombie_checks[spawner] = nil
|
||||||
|
|
||||||
end, {}, timer.getTime() + 10)
|
end, {}, timer.getTime() + 10)
|
||||||
|
|
||||||
HOGGIT.debug_text("Scheduled NEW dead check id ".. new_func_id .." for group: " .. grp, 10)
|
HOGGIT.debug_text("Scheduled NEW dead check id ".. new_func_id .." for group: " .. grp, 10)
|
||||||
HOGGIT.zombie_checks[spawner] = new_func_id
|
HOGGIT.zombie_checks[spawner] = new_func_id
|
||||||
else
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user