ZScript damage flags
Jump to navigation
Jump to search
Note: This page is meant to be included into other pages that describe damage functions, such as DamageMobj, using the {{: ZScript damage flags}} syntax. (This note will not be included.) |
- DMG_NO_ARMOR - The attack doesn't call AbsorbDamage on any of the victim's inventory items.
- DMG_NO_PAIN - The attack does not cause the victim to enter their Pain state sequence.
- DMG_INFLICTOR_IS_PUFF - Used by ApplyKickback to determine whether the origin should be the source (if the flag is set) or the inflictor. Automatically set by hitscan attacks.
- DMG_THRUSTLESS - The attack doesn't call ApplyKickback on the victim.
- DMG_FORCED - The attack ignores all damage negation flags/properties the victim has, such as NODAMAGE, and doesn't call special damage functions e.g. TakeSpecialDamage. Players with the NODAMAGE flag, god2, or buddha2 cheats are immune due to potential abuse.
- DMG_NO_FACTOR - The attack doesn't apply the victim's damage factors.
- DMG_PLAYERATTACK - Set if the attack came from a hitscan weapon fired by a player.
- DMG_FOILINVUL - The attack ignores the INVULNERABLE flag if the victim has it set.
- DMG_FOILBUDDHA - The attack ignores the BUDDHA flag if the victim has it set.
- DMG_NO_PROTECT - The attack doesn't call ModifyDamage or AbsorbDamage on any of the victim's inventory items.
- DMG_NO_ENHANCE - The attack doesn't call ModifyDamage on any of the source's inventory items.
- DMG_USEANGLE - The attack uses use the
angle
parameter when applying kickback instead of having ApplyKickback calculate the angle from the origin of the attack. - DMG_EXPLOSION - The attack is marked as splash damage from an explosion. This is set automatically if the damage came from an explosive projectile.