]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add weapon spread factor into the per-shot spread calculation
authorSamual <samual@xonotic.org>
Wed, 21 Sep 2011 18:50:16 +0000 (14:50 -0400)
committerSamual <samual@xonotic.org>
Wed, 21 Sep 2011 18:50:16 +0000 (14:50 -0400)
qcsrc/server/w_hagar.qc

index d0d3043c82b8b079e2d475eb2a59ebb21734e8e7..080eea39e453fe7ed7a7704bc1d6d8aae3321e45 100644 (file)
@@ -157,7 +157,7 @@ void W_Hagar_Attack2_Load_Release (void)
                // per-shot spread calculation: the more shots there are, the less spread is applied (based on the bias cvar)
                spread_pershot = ((shots - 1) / (autocvar_g_balance_hagar_secondary_load_max - 1)); 
                spread_pershot = (1 - (spread_pershot * autocvar_g_balance_hagar_secondary_load_spread_bias));
-               spread_pershot = (autocvar_g_balance_hagar_secondary_spread * spread_pershot);
+               spread_pershot = (autocvar_g_balance_hagar_secondary_spread * spread_pershot * g_weaponspreadfactor);
                
                // pattern spread calculation
                s = '0 0 0';