Garry's Mod Wiki

Revision Difference

Enums/DMG#516397

<cat>enum</cat> <enum> <description>Enumerations used by <page>CTakeDamageInfo:GetDamageType</page>, <page>CTakeDamageInfo:SetDamageType</page> and <page>CTakeDamageInfo:IsDamageType</page></description> <items> <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="1">6|Hit by a vehicle. This will need to be set for passengers of some vehicle to receive damage.</item>⤶ <item key="DMG_FALL" value="3">2|Fall damage</item>⤶ <item key="DMG_BLAST" value="6">4|Explosion damage. Will be ignored by most vehicle passengers.</item>⤶ <item key="DMG_CLUB" value="1">28|Crowbar damage</item>⤶ <item key="DMG_SHOCK" value="2">56|Electrical damage, shows smoke at the damage position</item>⤶ <item key="DMG_SONIC" value="5">12|Sonic damage,used by the Gargantua and Houndeye NPCs</item>⤶ <item key="DMG_ENERGYBEAM" value="1">024|Laser</item>⤶ <item key="DMG_PREVENT_PHYSICS_FORCE" value="2">048|Prevent a physics force</item>⤶ <item key="DMG_NEVERGIB" value="4">096|Never creates gibs. (Used by the crossbow)</item>⤶ <item key="DMG_ALWAYSGIB" value="8">192|Always create gibs</item>⤶ <item key="DMG_DROWN" value="1">6384|Drown damage</item>⤶ <item key="DMG_PARALYZE" value="3">2768|Same as DMG_POISON</item>⤶ <item key="DMG_NERVEGAS" value="6">5536|Neurotoxin damage</item>⤶ <item key="DMG_POISON" value="1">31072|Poison damage</item>⤶ <item key="DMG_RADIATION" value="2">62144|Radiation. Will be ignored by most vehicle passengers.</item>⤶ <item key="DMG_DROWNRECOVER" value="5">24288|Damage applied to the player to restore health after drowning</item>⤶ <item key="DMG_ACID" value="1">048576|Toxic chemicals or acid burns</item>⤶ <item key="DMG_SLOWBURN" value="2">097152|In an oven</item>⤶ <item key="DMG_REMOVENORAGDOLL" value="4">194304|Don't create a ragdoll on death</item>⤶ <item key="DMG_PHYSGUN" value="8">388608|Damage done by the gravity gun</item>⤶ <item key="DMG_PLASMA" value="1">6777216|Plasma</item>⤶ <item key="DMG_AIRBOAT" value="3">3554432|Airboat gun damage</item>⤶ <item key="DMG_DISSOLVE" value="6">7108864|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="1">34217728|This won't hurt the player underwater</item>⤶ <item key="DMG_DIRECT" value="2">68435456|Direct damage to the entity that does not go through any damage value modifications</item>⤶ <item key="DMG_BUCKSHOT" value="5">36870912|The pellets fired from a shotgun</item>⤶ <item key="DMG_SNIPER" value="1">073741824|Damage from SniperRound/SniperPenetratedRound ammo types</item>⤶ <item key="DMG_MISSILEDEFENSE" value="2">147483648|Damage from npc_missiledefense, npc_combinegunship, or monster_mortar</item>⤶ <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>⤶ </items> </enum>