From c4eceed528bb6e99933b95095ec93ded89553b3f Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Thu, 3 May 2007 20:09:22 +0000 Subject: [PATCH] fix a bug that made g_shootfromeye not use the v_forward multiplier git-svn-id: svn://svn.icculus.org/nexuiz/trunk@2470 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/cl_weaponsystem.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/qcsrc/server/cl_weaponsystem.qc b/data/qcsrc/server/cl_weaponsystem.qc index 88d804a26..f404c56ab 100644 --- a/data/qcsrc/server/cl_weaponsystem.qc +++ b/data/qcsrc/server/cl_weaponsystem.qc @@ -23,12 +23,13 @@ vector w_shotdir; void(entity ent, vector vecs, float antilag, float recoil, string snd) W_SetupShot = { if (cvar("g_shootfromeye")) - w_shotorg = ent.origin + ent.view_ofs + v_forward; + w_shotorg = ent.origin + ent.view_ofs + v_forward * vecs_x; else if (cvar("g_shootfromcenter")) w_shotorg = ent.origin + ent.view_ofs + v_forward * vecs_x + '0 0 1' * vecs_z; else w_shotorg = ent.origin + ent.view_ofs + v_forward * vecs_x + v_right * vecs_y + v_up * vecs_z; w_shotdir = v_forward; + //traceline_hitcorpse(self, w_shotorg, w_shotorg + v_forward * // explanation of g_antilag: // if client reports it was aiming at a player, and the serverside trace -- 2.39.2