]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Allow players to still choose the visual gun position with g_shootfromeye
authorSamual Lenks <samual@xonotic.org>
Fri, 14 Dec 2012 02:13:33 +0000 (21:13 -0500)
committerSamual Lenks <samual@xonotic.org>
Fri, 14 Dec 2012 02:13:33 +0000 (21:13 -0500)
qcsrc/server/miscfunctions.qc

index 20828800deebfdd3d7d0407269179ec0037489a8..eed2006a5bd63eb60a9cf27c13fe1c40ec5f2193 100644 (file)
@@ -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
                {