crylink: honor g_weaponspreadfactor
authordiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sat, 9 Jan 2010 19:01:04 +0000 (19:01 +0000)
committerdiv0 <div0@f962a42d-fe04-0410-a3ab-8c8b0445ebaa>
Sat, 9 Jan 2010 19:01:04 +0000 (19:01 +0000)
git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8491 f962a42d-fe04-0410-a3ab-8c8b0445ebaa

data/qcsrc/server/w_crylink.qc

index 45dc00c..61d0f76 100644 (file)
@@ -100,7 +100,7 @@ void W_Crylink_Attack (void)
                        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 @@ void W_Crylink_Attack2 (void)
                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"));