From 97a2ee25e7eea3e29af600d5b72365c4f1ef71f7 Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 29 Nov 2018 01:15:01 +0100 Subject: [PATCH] Fix bot_aim_reset --- qcsrc/server/bot/default/aim.qc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qcsrc/server/bot/default/aim.qc b/qcsrc/server/bot/default/aim.qc index 83de201bc..7af3fab05 100644 --- a/qcsrc/server/bot/default/aim.qc +++ b/qcsrc/server/bot/default/aim.qc @@ -173,12 +173,11 @@ void bot_lagfunc(entity this, float t, float f1, float f2, entity e1, vector v1, void bot_aim_reset(entity this) { this.bot_aimdir_executed = true; - makevectors(this.v_angle); this.bot_badaimtime = 0; this.bot_aimthinktime = time; this.bot_prevaimtime = time; - this.bot_mouseaim = v_forward; - this.bot_olddesiredang = v_forward; + this.bot_mouseaim = this.v_angle; + this.bot_olddesiredang = this.v_angle; this.bot_1st_order_aimfilter = '0 0 0'; this.bot_2nd_order_aimfilter = '0 0 0'; this.bot_3th_order_aimfilter = '0 0 0'; -- 2.39.2