From 4755b5ff3251f4863abeee333bb34f32cdeb1db1 Mon Sep 17 00:00:00 2001 From: terencehill Date: Sun, 26 Jan 2020 11:15:07 +0100 Subject: [PATCH] Bot AI: fix bots looking back for an instant if they jump a waypoint without touching it when they aren't bunnyhopping --- qcsrc/server/bot/default/navigation.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.2