]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/util.qc
Add an armor piercing option to vortex
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / util.qc
index 97bd155eaada8778baaee2727a270001a9598dce..95ab69ca6e39cbbea6a73898e8165be8860f35c2 100644 (file)
@@ -1126,6 +1126,8 @@ vector healtharmor_applydamage(float a, float armorblock, int deathtype, float d
        vector v;
        if (DEATH_IS(deathtype, DEATH_DROWN))  // Why should armor help here...
                armorblock = 0;
+       if (deathtype & HITTYPE_ARMORPIERCE)
+               armorblock = 0;
        v.y = bound(0, damage * armorblock, a); // save
        v.x = bound(0, damage - v.y, damage); // take
        v.z = 0;