]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't apply armor reduction here (it is automatically done on damage)
authorMario <mario.mario@y7mail.com>
Tue, 3 Jun 2014 21:58:04 +0000 (07:58 +1000)
committerMario <mario.mario@y7mail.com>
Tue, 3 Jun 2014 21:58:04 +0000 (07:58 +1000)
qcsrc/server/mutators/mutator_buffs.qc

index 15c500446eaed5669cfef4078c8ab45de1158eb1..200c307ac78a81d4d2fa16f8278c9644fece8335 100644 (file)
@@ -370,10 +370,8 @@ MUTATOR_HOOKFUNCTION(buffs_PlayerDamage_Calculate)
        if(!ITEM_DAMAGE_NEEDKILL(frag_deathtype))
        {
                entity dmgent = spawn();
-               vector v = healtharmor_applydamage(frag_attacker.armorvalue, autocvar_g_balance_armor_blockpercent, DEATH_BUFF_VENGEANCE, frag_damage * autocvar_g_buffs_vengeance_damage_multiplier);
-               float take = v_x;
-               
-               dmgent.dmg = take;
+
+               dmgent.dmg = frag_damage * autocvar_g_buffs_vengeance_damage_multiplier;
                dmgent.enemy = frag_attacker;
                dmgent.owner = frag_target;
                dmgent.think = buff_Vengeance_DelayedDamage;