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_spider.cpp | |
parent | 20b0ba26bb7b7ec43107e55e2a227de370b63e97 (diff) |
More sounds.
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) |