]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 619d08dc5c878e23f4d131d2ecb2dd10a93ee826..f31dbabd10fbc701860e709665149be797a5bcbb 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