]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add the combined damage of all shots to the HLAC shot setup calculations
authorMario <mario.mario@y7mail.com>
Thu, 23 Jun 2022 13:39:39 +0000 (23:39 +1000)
committerMario <mario.mario@y7mail.com>
Thu, 23 Jun 2022 13:39:39 +0000 (23:39 +1000)
qcsrc/common/weapons/weapon/hlac.qc

index f2c6cf9b32b37a6bbec4d48995f91825f15fb1bb..d89cdb1287051f2d49ed6d12f89d9f66a15492f2 100644 (file)
@@ -76,7 +76,7 @@ void W_HLAC_Attack2(Weapon thiswep, entity actor, .entity weaponentity)
        if(IS_DUCKED(actor))
                spread = spread * WEP_CVAR_SEC(hlac, spread_crouchmod);
 
-       W_SetupShot(actor, weaponentity, false, 3, SND_LASERGUN_FIRE, CH_WEAPON_A, WEP_CVAR_SEC(hlac, damage), thiswep.m_id | HITTYPE_SECONDARY);
+       W_SetupShot(actor, weaponentity, false, 3, SND_LASERGUN_FIRE, CH_WEAPON_A, WEP_CVAR_SEC(hlac, damage) * WEP_CVAR_SEC(hlac, shots), thiswep.m_id | HITTYPE_SECONDARY);
        W_MuzzleFlash(thiswep, actor, weaponentity, w_shotorg, w_shotdir);
        W_DecreaseAmmo(thiswep, actor, WEP_CVAR_SEC(hlac, ammo), weaponentity);