[nexuiz-commits] r8491 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Jan 9 14:01:04 EST 2010


Author: div0
Date: 2010-01-09 14:01:04 -0500 (Sat, 09 Jan 2010)
New Revision: 8491

Modified:
   trunk/data/qcsrc/server/w_crylink.qc
Log:
crylink: honor g_weaponspreadfactor

Modified: trunk/data/qcsrc/server/w_crylink.qc
===================================================================
--- trunk/data/qcsrc/server/w_crylink.qc	2010-01-07 21:45:15 UTC (rev 8490)
+++ trunk/data/qcsrc/server/w_crylink.qc	2010-01-09 19:01:04 UTC (rev 8491)
@@ -100,7 +100,7 @@
 			s_y = v_forward_x;
 			s_z = v_forward_y;
 		}
-		s = s * cvar("g_balance_crylink_primary_spread");
+		s = s * cvar("g_balance_crylink_primary_spread") * g_weaponspreadfactor;
 		W_SetupProjectileVelocityEx(proj, w_shotdir + right * s_y + up * s_z, v_up, cvar("g_balance_crylink_primary_speed"), 0, 0);
 		proj.touch = W_Crylink_Touch;
 		if(counter == 0)
@@ -152,7 +152,7 @@
 		setorigin (proj, w_shotorg);
 		setsize(proj, '0 0 0', '0 0 0');
 
-		W_SetupProjectileVelocityEx(proj, (w_shotdir + (((counter + 0.5) / shots) * 2 - 1) * v_right * cvar("g_balance_crylink_secondary_spread")), v_up, cvar("g_balance_crylink_secondary_speed"), 0, 0);
+		W_SetupProjectileVelocityEx(proj, (w_shotdir + (((counter + 0.5) / shots) * 2 - 1) * v_right * cvar("g_balance_crylink_secondary_spread") * g_weaponspreadfactor), v_up, cvar("g_balance_crylink_secondary_speed"), 0, 0);
 		proj.touch = W_Crylink_Touch2;
 		if(counter == (shots - 1) / 2)
 			SUB_SetFade(proj, time + cvar("g_balance_crylink_secondary_middle_lifetime"), cvar("g_balance_crylink_secondary_middle_fadetime"));



More information about the nexuiz-commits mailing list