Garry's Mod Wiki

Revision Difference

Enums/HITGROUP#516195

<cat>enum</cat> <enumeration> <description>Enumerations used by <page>GM:ScalePlayerDamage</page> and <page>GM:ScaleNPCDamage</page> and returned by <page>Player:LastHitGroup</page>.</description> <fields> <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.⤶ 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.⤶ This hitgroup is not present on default player models.</item> </fields> </enumeration>