Skip to content

Hit groups & knockback

Hit group configuration makes it possible to disable damage or adjust knock back per hit group. This is useful for fine tuning game balance.

The hit group configuration file is a file in Valve's key/value format with the root key "hitgroups" and a sub key for each hit group.

The default file is:

addons/sourcemod/configs/zr/hitgroups.txt

Hit Group Console Variables
Console variable: Default:
zr_hitgroups 1

Enable hitgroups module, disabling this will disable hitgroup-related features. (hitgroup knockback multipliers, hitgroup damage control)

Options:
0 or 1

zr_knockback_maxvel 0

Set maximum velocity zombies can get from knockback [0 = Off].

Options:
0 or >0

Hit Group Commands
Syntax:
zr_hitgroup <hitgroup name> [value]

Toggles or sets if a zombie's hitgroup can be damaged.

Parameters:

hitgrup name Name of the hit group to adjust. Options:
  • generic
  • head
  • chest
  • stomach
  • leftarm
  • rightarm
  • leftleg
  • rightleg
  • gear
valueOptional. Enable hit group damage. Default action is to toggle setting. Options: 0 or 1

Hit Group Attributes

Hit Group Attributes
Attribute: Type: Limits/Requirements:
index number -

The hit group index.

Options:

0Generic
1Head
2Chest
3Stomach
4Left Arm
5Right Arm
6Left Leg
7Right Leg
8Gear
damage text "yes" or "no"

Allows damage to be done on the specified hit group for zombies.

Options:

yesAllow damage
noIgnore damage
knockback decimal -

The knock back multiplier for the hitgroup. 1.0 for no change.