From a046ca4218a1e2ea284551ea2500f9b62b608187 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 26 Dec 2018 22:27:25 +0100 Subject: [PATCH] Fix some oddities --- qcsrc/server/bot/default/havocbot/havocbot.qc | 4 ++-- qcsrc/server/bot/default/navigation.qc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc index bc396fd72..901aded34 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -1102,7 +1102,7 @@ void havocbot_movetogoal(entity this) this.bot_stop_moving_timeout = time + 0.4 + random() * 0.2; } - offset = (vdist(this.velocity, >, 32) ? this.velocity * 0.2 : v_forward * 32); + offset = (vdist(this.velocity, >, 32) ? this.velocity * 0.2 : flatdir * 32); vector dst_ahead = this.origin + this.view_ofs + offset; vector dst_down = dst_ahead - '0 0 3000'; traceline(this.origin + this.view_ofs, dst_ahead, true, NULL); @@ -1115,7 +1115,7 @@ void havocbot_movetogoal(entity this) // Look downwards traceline(dst_ahead , dst_down, true, NULL); //te_lightning2(NULL, this.origin + this.view_ofs, dst_ahead); // Draw "ahead" look - //te_lightning2(NULL, dst_ahead, dst_down); // Draw "downwards" look + //te_lightning2(NULL, dst_ahead, trace_endpos); // Draw "downwards" look if(trace_endpos.z < this.origin.z + this.mins.z) { s = pointcontents(trace_endpos + '0 0 1'); diff --git a/qcsrc/server/bot/default/navigation.qc b/qcsrc/server/bot/default/navigation.qc index 7c7f7e1e1..4c5368882 100644 --- a/qcsrc/server/bot/default/navigation.qc +++ b/qcsrc/server/bot/default/navigation.qc @@ -1819,7 +1819,7 @@ void navigation_goalrating_end(entity this) this.goalstack31 = NULL; navigation_routetogoal(this, navigation_bestgoal, this.origin); - LOG_DEBUG("best goal ", this.goalcurrent.classname); + LOG_DEBUG("best goal ", navigation_bestgoal.classname); if (wp && this.goalcurrent == wp) navigation_poproute(this); -- 2.39.2