Garry's Mod Wiki

Revision Difference

Enums/HITGROUP#516338

<cat>enum</cat> <enum> <description>Enumerations used by <page>GM:ScalePlayerDamage</page> and <page>GM:ScaleNPCDamage</page> and returned by <page>Player:LastHitGroup</page>.</description> <items> <item key="HITGROUP_GENERIC" value="0">1:1 damage. Melee weapons typically hit this hitgroup. This hitgroup is not present on default player models. It is unknown how this is generated in <page>GM:ScalePlayerDamage</page>, but it occurs when shot by NPCs ( npc_combine_s ) for example.</item> <item key="HITGROUP_HEAD" value="1">Head</item> <item key="HITGROUP_CHEST" value="2">Chest</item> <item key="HITGROUP_STOMACH" value="3">Stomach</item> <item key="HITGROUP_LEFTARM" value="4">Left arm</item> <item key="HITGROUP_RIGHTARM" value="5">Right arm</item> <item key="HITGROUP_LEFTLEG" value="6">Left leg</item> <item key="HITGROUP_RIGHTLEG" value="7">Right leg</item> <item key="HITGROUP_GEAR" value="10">Gear. Supposed to be belt area. <item key="HITGROUP_GEAR" value="1">0|Gear. Supposed to be belt area. This hitgroup is not present on default player models.</item> </items> </enum>