HITGROUP Enumerations

From Garry's Mod
Jump to: navigation, search

Enumerations used by GM:ScalePlayerDamage and GM:ScaleNPCDamage and returned by Player:LastHitGroup.

Warning! Decimal values are for reference only! The actual value may be different between two Garry's Mod versions.
Name Decimal Description
HITGROUP_GENERIC 0 1:1 damage. This hitgroup is not present on default player models.
It is unknown how this is generated in GM:ScalePlayerDamage, but it occurs when shot by NPCs ( npc_combine_s ) for example.
HITGROUP_HEAD 1 Head
HITGROUP_CHEST 2 Chest
HITGROUP_STOMACH 3 Stomach
HITGROUP_LEFTARM 4 Left arm
HITGROUP_RIGHTARM 5 Right arm
HITGROUP_LEFTLEG 6 Left leg
HITGROUP_RIGHTLEG 7 Right leg
HITGROUP_GEAR 10 Gear. Supposed to be belt area.
This hitgroup is not present on default player models.
Personal tools
Navigation