]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also fix the multiplier so it doesn't heal generators instantly
authorMario <mario@smbclan.net>
Sun, 17 Jun 2018 07:31:50 +0000 (17:31 +1000)
committerMario <mario@smbclan.net>
Sun, 17 Jun 2018 07:31:50 +0000 (17:31 +1000)
qcsrc/common/weapons/weapon/arc.qc

index c02b0daf569a1dfffa015a80bf284324d29ea783..5233917b627e903bebce6eb6d6e7189028e31030 100644 (file)
@@ -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))