Use GivePlayerHealth in Vampire.
authorLyberta <lyberta@lyberta.net>
Sat, 26 Aug 2017 15:42:29 +0000 (18:42 +0300)
committerLyberta <lyberta@lyberta.net>
Sat, 26 Aug 2017 15:42:29 +0000 (18:42 +0300)
qcsrc/common/mutators/mutator/vampire/sv_vampire.qc

index 3a435c5..92c5943 100644 (file)
@@ -12,8 +12,7 @@ MUTATOR_HOOKFUNCTION(vampire, PlayerDamage_SplitHealthArmor)
        if(frag_target != frag_attacker)
        if(!IS_DEAD(frag_target))
        {
-               frag_attacker.health += bound(0, damage_take, frag_target.health);
-               frag_attacker.health = bound(0, frag_attacker.health, autocvar_g_balance_health_limit);
+               GivePlayerHealth(frag_attacker, bound(0, damage_take, frag_target.health));
        }
 }