From: Lyberta Date: Sat, 26 Aug 2017 15:42:29 +0000 (+0300) Subject: Use GivePlayerHealth in Vampire. X-Git-Tag: xonotic-v0.8.5~2499^2~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b13e6291d93a9a7f05b7b55c9effa14a60294b49;p=xonotic%2Fxonotic-data.pk3dir.git Use GivePlayerHealth in Vampire. --- 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)); } }