g_hitmode — set active hitmode
g_hitmode [mode]
Table 13.15. g_hitmode Modes
| MODE | NAME | BOXES | SUMMARY |
|---|---|---|---|
| 0 | auto | n/a | automatically selects recommended mode |
| 1 | entity | 1 | body |
| 2 | etmain | 3 | head, torso, feet |
| 3 | basic | 3 | head, torso, feet |
| 4 | standard | 3 | head, torso, feet |
| 5 | advanced | 9 | head, larm, rarm, lhand, rhand, torso(2), lfoot and rfoot |
| 6 | oriented | 10 | head, larm, rarm, lhand, rhand, torso, lleg, rleg, lfoot and rfoot |
g_hitmode sets the active hitmode which controls how bullet-hits are calculated and scored against player models.
Mimics player's word-collision with only a large body box. This is only useful for reference purposes, or servers uninterested in accuracy.
Baseline (stock) ET behavior composed of { head, torso, feet } boxes. Priority-box scoring in order of { head, feet, torso }. That is to say if a bullet can hit a player's head, regardless of whether it travels through another box on the same player such as torso, the headshot will be scored. For example, shooting a player on a ladder from below, resulst in more headshots than you might expect. This behavior is to maintain backwards-compatibility.
Similar but improved over etmain with { crouch, prone, playdead } adjustments for added realism. Uses priority-box scoring in order of { head, feet, torso }. This mode is somewhat similar to that of older ETPub versions.
Similar but improved over basic with animation-accurate head-box. Uses priority-box scoring in order of { head, feet, torso }. This mode matches that of Jaymod prior to 2.1.0 version.
Advanced (realistic), tight behavior with head, left-arm, right-arm, left-hand, right-hand, torso(2), left-foot and right-foot boxes all tracking animation. Uses closest-box scoring, resulting in more difficult headshots when impeded by other boxes.
Oriented, tight behavior with head, left-arm, right-arm, left-hand, right-hand, torso, left-leg, right-leg, left-foot and right-foot boxes all tracking animation. Uses closest-box scoring, resulting in more difficult headshots when impeded by other boxes. This is the tightest and most discriminating model to date. It is unknown at this time how much CPU this mode will consume on busy servers.