From 68b0ed76e2b906e469b3f1cc05886a3db9dfd191 Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 13 Mar 2017 01:37:42 +0100 Subject: [PATCH] Fix bots not jumping to get out of lava and water (part 2) --- qcsrc/server/bot/default/havocbot/havocbot.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc index 824d645ee..038aea0f6 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -736,6 +736,7 @@ void havocbot_movetogoal(entity this) evadeobstacle = '0 0 0'; evadelava = '0 0 0'; + this.aistatus &= ~AI_STATUS_DANGER_AHEAD; makevectors(this.v_angle.y * '0 1 0'); if (this.waterlevel) { @@ -812,7 +813,6 @@ void havocbot_movetogoal(entity this) // Check for water/slime/lava and dangerous edges // (only when the bot is on the ground or jumping intentionally) - this.aistatus &= ~AI_STATUS_DANGER_AHEAD; vector dst_ahead = this.origin + this.view_ofs + offset; vector dst_down = dst_ahead - '0 0 3000'; -- 2.39.2