]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix damage stats of hagar secondary fire counting total potential damage as potential...
authorterencehill <piuntn@gmail.com>
Fri, 14 Jul 2017 11:25:20 +0000 (13:25 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 14 Jul 2017 11:25:20 +0000 (13:25 +0200)
qcsrc/common/weapons/weapon/hagar.qc

index f7b289278608a7a0591abb74481d2d0878965302..65cc52f5a546078dcaa49da7eff0f15411851961 100644 (file)
@@ -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)
        {