From: terencehill Date: Sun, 26 Jan 2020 10:15:07 +0000 (+0100) Subject: Bot AI: fix bots looking back for an instant if they jump a waypoint without touching... X-Git-Tag: xonotic-v0.8.5~1159 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=4755b5ff3251f4863abeee333bb34f32cdeb1db1;p=xonotic%2Fxonotic-data.pk3dir.git Bot AI: fix bots looking back for an instant if they jump a waypoint without touching it when they aren't bunnyhopping --- diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index 5ee889d16..fad601e35 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -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) {