r2470 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu May 3 16:09:22 EDT 2007


Author: lordhavoc
Date: 2007-05-03 16:09:22 -0400 (Thu, 03 May 2007)
New Revision: 2470

Modified:
   trunk/data/qcsrc/server/cl_weaponsystem.qc
Log:
fix a bug that made g_shootfromeye not use the v_forward multiplier


Modified: trunk/data/qcsrc/server/cl_weaponsystem.qc
===================================================================
--- trunk/data/qcsrc/server/cl_weaponsystem.qc	2007-05-03 20:07:21 UTC (rev 2469)
+++ trunk/data/qcsrc/server/cl_weaponsystem.qc	2007-05-03 20:09:22 UTC (rev 2470)
@@ -23,12 +23,13 @@
 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




More information about the nexuiz-commits mailing list