Garry's Mod Wiki

Revision Difference

Enums/DMG#514549

<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>⤶ ⤶ </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}}⤶ }}