]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bot AI: fix bots looking back for an instant if they jump a waypoint without touching...
authorterencehill <piuntn@gmail.com>
Sun, 26 Jan 2020 10:15:07 +0000 (11:15 +0100)
committerterencehill <piuntn@gmail.com>
Sun, 26 Jan 2020 10:15:07 +0000 (11:15 +0100)
qcsrc/server/bot/default/navigation.qc

index 5ee889d169605d4f0c373b6d331682a903595563..fad601e35366954d9cc7b8b9116b477b07cb7935 100644 (file)
@@ -1748,7 +1748,7 @@ int navigation_poptouchedgoals(entity this)
                if(this.goalcurrent.classname == "waypoint" && !this.goalcurrent.wpisbox)
                {
                        gc_min = this.goalcurrent.origin - '1 1 1' * 12;
-                       gc_max = this.goalcurrent.origin + '1 1 1' * 12;
+                       gc_max = this.goalcurrent.origin + '1 1 1' * 12 + eZ * (jumpheight_vec.z + STAT(PL_MIN, this).z);
                }
                if (time < this.ladder_time)
                {