From: Mario Date: Sun, 17 Jun 2018 07:31:50 +0000 (+1000) Subject: Also fix the multiplier so it doesn't heal generators instantly X-Git-Tag: xonotic-v0.8.5~2022^2~7 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=74d13cb764a8b2ecdd1598eba7c0ed517c73c80e;p=xonotic%2Fxonotic-data.pk3dir.git Also fix the multiplier so it doesn't heal generators instantly --- diff --git a/qcsrc/common/weapons/weapon/arc.qc b/qcsrc/common/weapons/weapon/arc.qc index c02b0daf5..5233917b6 100644 --- a/qcsrc/common/weapons/weapon/arc.qc +++ b/qcsrc/common/weapons/weapon/arc.qc @@ -425,7 +425,7 @@ void W_Arc_Beam_Think(entity this) float roothealth = ((burst) ? WEP_CVAR(arc, burst_healing_hps) : WEP_CVAR(arc, beam_healing_hps)); float rootarmor = ((burst) ? WEP_CVAR(arc, burst_healing_aps) : WEP_CVAR(arc, beam_healing_aps)); float hplimit = ((IS_PLAYER(trace_ent)) ? WEP_CVAR(arc, beam_healing_hmax) : 0); - Heal(trace_ent, own, roothealth, hplimit); + Heal(trace_ent, own, (roothealth * coefficient), hplimit); if(IS_PLAYER(trace_ent) && rootarmor) { if(GetResourceAmount(trace_ent, RESOURCE_ARMOR) <= WEP_CVAR(arc, beam_healing_amax))