diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-04-13 12:04:56 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-04-13 12:04:56 +0200 |
commit | 7159afab99b130e7f3c5560765dded6c861f6c3b (patch) | |
tree | 2b0a2ec22f003a215db8503a7b0701cfa6af67cc /src/game/unit_nest.cpp | |
parent | 20b0ba26bb7b7ec43107e55e2a227de370b63e97 (diff) |
More sounds.
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) |