diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-04-19 18:50:39 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-04-19 18:50:39 +0200 |
commit | fade55e67e1a6944461c16c1495dea9546243756 (patch) | |
tree | 6fd02d2f6ba1b28b98ac62e4fe51064c4bfede28 /src/game/unit_nest.cpp | |
parent | aea9498a593321a3cb34fa93d3d4734ebd8370c1 (diff) |
Improve the hivemind.
Diffstat (limited to 'src/game/unit_nest.cpp')
-rw-r--r-- | src/game/unit_nest.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/unit_nest.cpp b/src/game/unit_nest.cpp index 5890d34..89846c2 100644 --- a/src/game/unit_nest.cpp +++ b/src/game/unit_nest.cpp @@ -82,13 +82,17 @@ void unit_nest_t::on_spawn(void) void unit_nest_t::on_damage(unit_t *attacker) { if (attacker) - hivemind_attack(this, attacker->x); + hivemind_attack(this, true, attacker->x); + else + hivemind_attack(this, false, v2f_t(0, 0)); assets::nest.pain.play_3d(x); } void unit_nest_t::on_death(void) { + hivemind_attack(this, false, v2f_t(0, 0)); + render_layer = render::LAYER_FLAT; cmodel.cflags = CF_BACKGROUND; assets::nest.death.play_3d(x); |