From: Mario Date: Sun, 9 Sep 2018 17:30:22 +0000 (+1000) Subject: Offset the portal aiming line by the weapon's movedir, so as to not interfere with... X-Git-Tag: xonotic-v0.8.5~1887 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=916fd54468bc9f32e678fafb568a89a0f0a1c4cb;p=xonotic%2Fxonotic-data.pk3dir.git Offset the portal aiming line by the weapon's movedir, so as to not interfere with dual wielding --- diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index a7fbe1368..e873f6453 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -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);