]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Offset the portal aiming line by the weapon's movedir, so as to not interfere with...
authorMario <zacjardine@y7mail.com>
Sun, 9 Sep 2018 17:30:22 +0000 (03:30 +1000)
committerMario <zacjardine@y7mail.com>
Sun, 9 Sep 2018 17:30:22 +0000 (03:30 +1000)
qcsrc/client/view.qc

index a7fbe136825b960bb2718fc518183d5d259d8e47..e873f64535bd40ca74bb8126e882c92f7085fe64 100644 (file)
@@ -427,6 +427,10 @@ void Porto_Draw(entity this)
 
                vector pos = view_origin;
                vector dir = view_forward;
+               makevectors(((autocvar_chase_active) ? warpzone_save_view_angles : view_angles));
+               pos += v_right * -wepent.movedir.y
+                       +  v_up * wepent.movedir.z;
+
                if (wepent.angles_held_status)
                {
                        makevectors(wepent.angles_held);