r2072 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Dec 29 06:08:23 EST 2006


Author: div0
Date: 2006-12-29 06:08:23 -0500 (Fri, 29 Dec 2006)
New Revision: 2072

Modified:
   trunk/data/qcsrc/server/w_crylink.qc
Log:
Crylink secondary center correctly


Modified: trunk/data/qcsrc/server/w_crylink.qc
===================================================================
--- trunk/data/qcsrc/server/w_crylink.qc	2006-12-29 11:07:58 UTC (rev 2071)
+++ trunk/data/qcsrc/server/w_crylink.qc	2006-12-29 11:08:23 UTC (rev 2072)
@@ -139,7 +139,7 @@
 		setsize (proj, '0 0 0', '0 0 0');
 		setorigin (proj, w_shotorg);
 
-		proj.velocity = (w_shotdir + ((counter / shots) * 2 - 1) * v_right * cvar("g_balance_crylink_secondary_spread")) * cvar("g_balance_crylink_secondary_speed");
+		proj.velocity = (w_shotdir + (((counter + 0.5) / shots) * 2 - 1) * v_right * cvar("g_balance_crylink_secondary_spread")) * cvar("g_balance_crylink_secondary_speed");
 		proj.touch = W_Crylink_Touch2;
 		proj.think = SUB_Remove;
 		proj.nextthink = time + cvar("g_balance_crylink_secondary_lifetime");




More information about the nexuiz-commits mailing list