]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix bot_aim_reset
authorterencehill <piuntn@gmail.com>
Thu, 29 Nov 2018 00:15:01 +0000 (01:15 +0100)
committerterencehill <piuntn@gmail.com>
Thu, 29 Nov 2018 00:15:01 +0000 (01:15 +0100)
qcsrc/server/bot/default/aim.qc

index 83de201bcfd892070ae3b71e337466a7d7c426b1..7af3fab05eef57c376298e302347b6d2bf4ef9bf 100644 (file)
@@ -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';