From 4ee795e59e03e44d627e86fb2f09859a37e867d6 Mon Sep 17 00:00:00 2001 From: terencehill Date: Tue, 5 May 2020 16:08:52 +0200 Subject: [PATCH] Bot AI: fix bots standing still after a while on maps with jump waypoints; it fixes #2436 --- 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 619d08dc5..f31dbabd1 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -48,7 +48,7 @@ void havocbot_ai(entity this) else { if (!this.jumppadcount && !STAT(FROZEN, this) - && !(this.goalcurrent_prev && (this.goalcurrent_prev.wpflags & WAYPOINTFLAG_JUMP))) + && !(this.goalcurrent_prev && (this.goalcurrent_prev.wpflags & WAYPOINTFLAG_JUMP) && !IS_ONGROUND(this))) { // find a new goal this.havocbot_role(this); // little too far down the rabbit hole -- 2.39.2