From b13e6291d93a9a7f05b7b55c9effa14a60294b49 Mon Sep 17 00:00:00 2001 From: Lyberta Date: Sat, 26 Aug 2017 18:42:29 +0300 Subject: [PATCH] Use GivePlayerHealth in Vampire. --- qcsrc/common/mutators/mutator/vampire/sv_vampire.qc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcsrc/common/mutators/mutator/vampire/sv_vampire.qc b/qcsrc/common/mutators/mutator/vampire/sv_vampire.qc index 3a435c5ed..92c5943c3 100644 --- a/qcsrc/common/mutators/mutator/vampire/sv_vampire.qc +++ b/qcsrc/common/mutators/mutator/vampire/sv_vampire.qc @@ -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)); } } -- 2.39.2