Bot AI: fix bots standing still after a while on maps with jump waypoints; it fixes...
authorterencehill <piuntn@gmail.com>
Tue, 5 May 2020 14:08:52 +0000 (16:08 +0200)
committerterencehill <piuntn@gmail.com>
Tue, 5 May 2020 14:08:52 +0000 (16:08 +0200)
qcsrc/server/bot/default/havocbot/havocbot.qc

index 619d08d..f31dbab 100644 (file)
@@ -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