From 2de509d29e43285ab1ff36e536cc52b86ed300e2 Mon Sep 17 00:00:00 2001 From: Mario Date: Sat, 14 Mar 2015 06:30:35 +1100 Subject: [PATCH] Vampire: also steal armor if the target has any --- qcsrc/server/mutators/mutator_buffs.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/server/mutators/mutator_buffs.qc b/qcsrc/server/mutators/mutator_buffs.qc index a704b7284..16ea5f274 100644 --- a/qcsrc/server/mutators/mutator_buffs.qc +++ b/qcsrc/server/mutators/mutator_buffs.qc @@ -485,7 +485,11 @@ MUTATOR_HOOKFUNCTION(buffs_PlayerDamage_Calculate) if(!frag_target.frozen) if(frag_target.takedamage) if(DIFF_TEAM(frag_attacker, frag_target)) + { frag_attacker.health = bound(0, frag_attacker.health + bound(0, frag_damage * autocvar_g_buffs_vampire_damage_steal, frag_target.health), g_pickup_healthsmall_max); + if(frag_target.armorvalue) + frag_attacker.armorvalue = bound(0, frag_attacker.armorvalue + bound(0, frag_damage * autocvar_g_buffs_vampire_damage_steal, frag_target.armorvalue), g_pickup_armorsmall_max); + } return false; } -- 2.39.2