From fade55e67e1a6944461c16c1495dea9546243756 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Thu, 19 Apr 2018 18:50:39 +0200 Subject: Improve the hivemind. --- src/game/unit_nest.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/game/unit_nest.cpp') 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); -- cgit