From: Rudolf Polzer Date: Tue, 19 Apr 2011 16:37:38 +0000 (+0200) Subject: rifle: fix damage calculation for accuracy stats X-Git-Tag: xonotic-v0.5.0~109^2~24^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=043dc9ff9f148e3ea5f8e1bcb3fc63de3f764e8f;p=xonotic%2Fxonotic-data.pk3dir.git rifle: fix damage calculation for accuracy stats --- diff --git a/qcsrc/server/w_sniperrifle.qc b/qcsrc/server/w_sniperrifle.qc index 0de47937e..3cfc3343c 100644 --- a/qcsrc/server/w_sniperrifle.qc +++ b/qcsrc/server/w_sniperrifle.qc @@ -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);