diff options
Diffstat (limited to 'src/game/unit_spider.cpp')
-rw-r--r-- | src/game/unit_spider.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/game/unit_spider.cpp b/src/game/unit_spider.cpp index df9073c..32ae178 100644 --- a/src/game/unit_spider.cpp +++ b/src/game/unit_spider.cpp @@ -68,6 +68,12 @@ void unit_spider_t::target_and_attack(void) last_attack = game->now; target->damage(15, this); + assets::spider.bite.play_3d(x); +} + +void unit_spider_t::on_wake(void) +{ + assets::spider.sounds.play_3d(x); } void unit_spider_t::on_think(void) @@ -85,6 +91,8 @@ void unit_spider_t::on_think(void) void unit_spider_t::on_damage(unit_t *attacker) { + assets::spider.sounds.play_3d(x); + if (!attacker) return; @@ -101,6 +109,7 @@ void unit_spider_t::on_death(void) render_layer = render::LAYER_FLAT; cmodel.cflags = CF_BACKGROUND; + assets::spider.sounds.play_3d(x); } void unit_spider_t::render_to(render::state_t *render) |