From: terencehill Date: Fri, 14 Jul 2017 11:25:20 +0000 (+0200) Subject: Fix damage stats of hagar secondary fire counting total potential damage as potential... X-Git-Tag: xonotic-v0.8.5~2281^2~6 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=26f6de7e0396ea18aa2e35a1aebd8a3bfdc90b23;p=xonotic%2Fxonotic-data.pk3dir.git Fix damage stats of hagar secondary fire counting total potential damage as potential damage of just one projectile --- diff --git a/qcsrc/common/weapons/weapon/hagar.qc b/qcsrc/common/weapons/weapon/hagar.qc index f7b289278..65cc52f5a 100644 --- a/qcsrc/common/weapons/weapon/hagar.qc +++ b/qcsrc/common/weapons/weapon/hagar.qc @@ -241,14 +241,14 @@ void W_Hagar_Attack2_Load_Release(entity actor, .entity weaponentity) weapon_prepareattack_do(actor, weaponentity, true, WEP_CVAR_SEC(hagar, refire)); - W_SetupShot(actor, weaponentity, false, 2, SND_HAGAR_FIRE, CH_WEAPON_A, WEP_CVAR_SEC(hagar, damage)); + shots = actor.(weaponentity).hagar_load; + W_SetupShot(actor, weaponentity, false, 2, SND_HAGAR_FIRE, CH_WEAPON_A, WEP_CVAR_SEC(hagar, damage) * shots); Send_Effect(EFFECT_HAGAR_MUZZLEFLASH, w_shotorg, w_shotdir * 1000, 1); forward = v_forward; right = v_right; up = v_up; - shots = actor.(weaponentity).hagar_load; missile = NULL; for(counter = 0; counter < shots; ++counter) {