diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2018-04-20 14:18:16 +0200 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2018-04-20 14:18:16 +0200 |
commit | 84766a7d49d3c1e233e13191c86d4ada2bbe2ddc (patch) | |
tree | 57f733939a9fd9c0cb1c3157da37e90b2c08b547 /src/game/unit_nest.cpp | |
parent | 0bc4eaebc6cb4410c5dbf3d89ae02634cfe72e27 (diff) |
Refactor and improve the hivemind + better AI debugging.
Diffstat (limited to 'src/game/unit_nest.cpp')
-rw-r--r-- | src/game/unit_nest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/unit_nest.cpp b/src/game/unit_nest.cpp index 89846c2..a52574a 100644 --- a/src/game/unit_nest.cpp +++ b/src/game/unit_nest.cpp @@ -82,16 +82,16 @@ void unit_nest_t::on_spawn(void) void unit_nest_t::on_damage(unit_t *attacker) { if (attacker) - hivemind_attack(this, true, attacker->x); + game->hivemind_alert(x, 12.0f, true, attacker->x); else - hivemind_attack(this, false, v2f_t(0, 0)); + game->hivemind_alert(x, 12.0f, 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)); + game->hivemind_alert(x, 16.0f, false, v2f_t(0, 0)); render_layer = render::LAYER_FLAT; cmodel.cflags = CF_BACKGROUND; |