diff options
Diffstat (limited to 'src/game/unit_nest.cpp')
-rw-r--r-- | src/game/unit_nest.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/game/unit_nest.cpp b/src/game/unit_nest.cpp index a52574a..fe4a077 100644 --- a/src/game/unit_nest.cpp +++ b/src/game/unit_nest.cpp @@ -81,6 +81,19 @@ void unit_nest_t::on_spawn(void) void unit_nest_t::on_damage(unit_t *attacker) { + if (health < -30) { + assets::fx.gibbing.play_3d(x); + game->deletion_list.insert(this); + return; + } + + if (health <= 0) { + if (!dead) + assets::fx.corpse_hit.play_3d(x); + + return; + } + if (attacker) game->hivemind_alert(x, 12.0f, true, attacker->x); else |