From 7159afab99b130e7f3c5560765dded6c861f6c3b Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 13 Apr 2018 12:04:56 +0200 Subject: More sounds. --- src/game/unit_spider.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/game/unit_spider.cpp') 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) -- cgit