From: Samual Lenks Date: Fri, 14 Dec 2012 02:13:33 +0000 (-0500) Subject: Allow players to still choose the visual gun position with g_shootfromeye X-Git-Tag: xonotic-v0.7.0~191^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=af8d2181e33ade2096a2ea0fc20a3cce71483c07;p=xonotic%2Fxonotic-data.pk3dir.git Allow players to still choose the visual gun position with g_shootfromeye --- diff --git a/qcsrc/server/miscfunctions.qc b/qcsrc/server/miscfunctions.qc index 20828800d..eed2006a5 100644 --- a/qcsrc/server/miscfunctions.qc +++ b/qcsrc/server/miscfunctions.qc @@ -2410,8 +2410,8 @@ vector shotorg_adjust_values(vector vecs, float y_is_right, float visual, float { if (visual) { - vecs_y = 0; - vecs_z -= 2; + if (autocvar_g_shootfromclient) { vecs = shotorg_adjustfromclient(vecs, y_is_right, (autocvar_g_shootfromclient >= 2), algn); } + else { vecs_y = 0; vecs_z -= 2; } } else {