From 6411a86b7a90e28527ce219c13e2d37c527f2ed6 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 23 Jun 2022 23:39:39 +1000 Subject: [PATCH] Add the combined damage of all shots to the HLAC shot setup calculations --- qcsrc/common/weapons/weapon/hlac.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/weapons/weapon/hlac.qc b/qcsrc/common/weapons/weapon/hlac.qc index f2c6cf9b3..d89cdb128 100644 --- a/qcsrc/common/weapons/weapon/hlac.qc +++ b/qcsrc/common/weapons/weapon/hlac.qc @@ -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); -- 2.39.2