Revision Difference
Enums/DMG#516092
<cat>enum</cat>
<enumeration>
<description>Enumerations used by <page>CTakeDamageInfo:GetDamageType</page>, <page>CTakeDamageInfo:SetDamageType</page> and <page>CTakeDamageInfo:IsDamageType</page></description>
<fields>{{EnumField|DMG_GENERIC|0|Generic damage</fields>⤶
<fields><item key="DMG_GENERIC" value="0">Generic damage</item><item key="DMG_CRUSH" value="1">Caused by physics interaction. Ignored by airboat drivers. Used by the Crowbar</item><item key="DMG_BULLET" value="2">Bullet damage</item><item key="DMG_SLASH" value="4">Sharp objects, such as Manhacks or other NPCs attacks</item><item key="DMG_BURN" value="8">Damage from fire</item><item key="DMG_VEHICLE" value="16">Hit by a vehicle. This will need to be set for passengers of some vehicle to receive damage.</item><item key="DMG_FALL" value="32">Fall damage</item><item key="DMG_BLAST" value="64">Explosion damage. Will be ignored by most vehicle passengers.</item><item key="DMG_CLUB" value="128">Crowbar damage</item><item key="DMG_SHOCK" value="256">Electrical damage, shows smoke at the damage position</item><item key="DMG_SONIC" value="512">Sonic damage,used by the Gargantua and Houndeye NPCs</item><item key="DMG_ENERGYBEAM" value="1024">Laser</item><item key="DMG_PREVENT_PHYSICS_FORCE" value="2048">Prevent a physics force</item><item key="DMG_NEVERGIB" value="4096">Never creates gibs. (Used by the crossbow)</item><item key="DMG_ALWAYSGIB" value="8192">Always create gibs</item><item key="DMG_DROWN" value="16384">Drown damage</item><item key="DMG_PARALYZE" value="32768">Same as DMG_POISON</item><item key="DMG_NERVEGAS" value="65536">Neurotoxin damage</item><item key="DMG_POISON" value="131072">Poison damage</item><item key="DMG_RADIATION" value="262144">Radiation. Will be ignored by most vehicle passengers.</item><item key="DMG_DROWNRECOVER" value="524288">Damage applied to the player to restore health after drowning</item><item key="DMG_ACID" value="1048576">Toxic chemicals or acid burns</item><item key="DMG_SLOWBURN" value="2097152">In an oven</item><item key="DMG_REMOVENORAGDOLL" value="4194304">Don't create a ragdoll on death</item><item key="DMG_PHYSGUN" value="8388608">Damage done by the gravity gun</item><item key="DMG_PLASMA" value="16777216">Plasma</item><item key="DMG_AIRBOAT" value="33554432">Airboat gun damage</item><item key="DMG_DISSOLVE" value="67108864">Forces the entity to dissolve on death. This is what the combine ball uses when it hits a target</item><item key="DMG_BLAST_SURFACE" value="134217728">This won't hurt the player underwater</item><item key="DMG_DIRECT" value="268435456">Direct damage to the entity that does not go through any damage value modifications</item><item key="DMG_BUCKSHOT" value="536870912">The pellets fired from a shotgun</item><item key="DMG_SNIPER" value="1073741824">Damage from SniperRound/SniperPenetratedRound ammo types</item><item key="DMG_MISSILEDEFENSE" value="2147483648">Damage from npc_missiledefense, npc_combinegunship, or monster_mortar</item></fields>⤶
</enumeration>
{{EnumField|DMG_CRUSH|1|Caused by physics interaction. Ignored by airboat drivers. Used by the Crowbar}}{{EnumField|DMG_BULLET|2|Bullet damage}}{{EnumField|DMG_SLASH|4|Sharp objects, such as Manhacks or other NPCs attacks}}{{EnumField|DMG_BURN|8|Damage from fire}}{{EnumField|DMG_VEHICLE|16|Hit by a vehicle. This will need to be set for passengers of some vehicle to receive damage.}}{{EnumField|DMG_FALL|32|Fall damage}}{{EnumField|DMG_BLAST|64|Explosion damage. Will be ignored by most vehicle passengers.}}{{EnumField|DMG_CLUB|128|Crowbar damage}}{{EnumField|DMG_SHOCK|256|Electrical damage, shows smoke at the damage position}}{{EnumField|DMG_SONIC|512|Sonic damage,used by the Gargantua and Houndeye NPCs}}{{EnumField|DMG_ENERGYBEAM|1024|Laser}}{{EnumField|DMG_PREVENT_PHYSICS_FORCE|2048|Prevent a physics force}}{{EnumField|DMG_NEVERGIB|4096|Never creates gibs. (Used by the crossbow)}}{{EnumField|DMG_ALWAYSGIB|8192|Always create gibs}}{{EnumField|DMG_DROWN|16384|Drown damage}}{{EnumField|DMG_PARALYZE|32768|Same as DMG_POISON}}{{EnumField|DMG_NERVEGAS|65536|Neurotoxin damage}}{{EnumField|DMG_POISON|131072|Poison damage}}{{EnumField|DMG_RADIATION|262144|Radiation. Will be ignored by most vehicle passengers.}}{{EnumField|DMG_DROWNRECOVER|524288|Damage applied to the player to restore health after drowning}}{{EnumField|DMG_ACID|1048576|Toxic chemicals or acid burns}}{{EnumField|DMG_SLOWBURN|2097152|In an oven}}{{EnumField|DMG_REMOVENORAGDOLL|4194304|Don't create a ragdoll on death}}{{EnumField|DMG_PHYSGUN|8388608|Damage done by the gravity gun}}{{EnumField|DMG_PLASMA|16777216|Plasma}}{{EnumField|DMG_AIRBOAT|33554432|Airboat gun damage}}{{EnumField|DMG_DISSOLVE|67108864|Forces the entity to dissolve on death. This is what the combine ball uses when it hits a target}}{{EnumField|DMG_BLAST_SURFACE|134217728|This won't hurt the player underwater}}{{EnumField|DMG_DIRECT|268435456|Direct damage to the entity that does not go through any damage value modifications}}{{EnumField|DMG_BUCKSHOT|536870912|The pellets fired from a shotgun}}{{EnumField|DMG_SNIPER|1073741824|Damage from SniperRound/SniperPenetratedRound ammo types}}{{EnumField|DMG_MISSILEDEFENSE|2147483648|Damage from npc_missiledefense, npc_combinegunship, or monster_mortar}}⤶
}}