From: terencehill Date: Thu, 29 Nov 2018 00:15:01 +0000 (+0100) Subject: Fix bot_aim_reset X-Git-Tag: xonotic-v0.8.5~1705^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=97a2ee25e7eea3e29af600d5b72365c4f1ef71f7;p=xonotic%2Fxonotic-data.pk3dir.git Fix bot_aim_reset --- 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';