]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
rifle: fix damage calculation for accuracy stats
authorRudolf Polzer <divverent@alientrap.org>
Tue, 19 Apr 2011 16:37:38 +0000 (18:37 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 19 Apr 2011 16:37:38 +0000 (18:37 +0200)
qcsrc/server/w_sniperrifle.qc

index 0de47937ed1b26ab69252c6826227e1ab2ab3ce5..3cfc3343c21d8a73f5a63aef7f04dca85bd0361c 100644 (file)
@@ -11,7 +11,7 @@ void W_SniperRifle_FireBullet(float pSpread, float pDamage, float pHeadshotAdded
 
        W_DecreaseAmmo(ammo_nails, pAmmo, autocvar_g_balance_sniperrifle_reload_ammo);
 
-       W_SetupShot (self, autocvar_g_antilag_bullets && pSpeed >= autocvar_g_antilag_bullets, 2, pSound, CHAN_WEAPON, pDamage + pHeadshotAddedDamage);
+       W_SetupShot (self, autocvar_g_antilag_bullets && pSpeed >= autocvar_g_antilag_bullets, 2, pSound, CHAN_WEAPON, (pDamage + pHeadshotAddedDamage) * pShots);
 
        pointparticles(particleeffectnum("sniperrifle_muzzleflash"), w_shotorg, w_shotdir * 2000, 1);