diff options
Diffstat (limited to 'src/game/unit_nest.cpp')
-rw-r--r-- | src/game/unit_nest.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/unit_nest.cpp b/src/game/unit_nest.cpp index cae98f5..5890d34 100644 --- a/src/game/unit_nest.cpp +++ b/src/game/unit_nest.cpp @@ -68,6 +68,7 @@ void unit_nest_t::on_think(void) return; spawn_spider(game, x); + assets::nest.spawn.play_3d(x); next_spawning = game->now + game->prng.next_float() * 10 + 5; } @@ -78,10 +79,19 @@ void unit_nest_t::on_spawn(void) spawn_spider(game, x); } +void unit_nest_t::on_damage(unit_t *attacker) +{ + if (attacker) + hivemind_attack(this, attacker->x); + + assets::nest.pain.play_3d(x); +} + void unit_nest_t::on_death(void) { render_layer = render::LAYER_FLAT; cmodel.cflags = CF_BACKGROUND; + assets::nest.death.play_3d(x); } void unit_nest_t::render_to(render::state_t *render) |