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 1zr_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
value Optional. 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:
0 Generic 1 Head 2 Chest 3 Stomach 4 Left Arm 5 Right Arm 6 Left Leg 7 Right Leg 8 Gear damage text "yes" or "no" Allows damage to be done on the specified hit group for zombies.
Options:
yes Allow damage no Ignore damage knockback decimal - The knock back multiplier for the hitgroup. 1.0 for no change.