-
Notifications
You must be signed in to change notification settings - Fork 0
Hitmode
Jaymod features an entirely new hitbox architecture introduced in version 2.1.0 (credits to Zinx Verituse for player-animation tracking). It provides six hitbox modes, antilag for all bullet weapons, and visual debugging tools.
| Feature | Detail |
|---|---|
| Antilag | Applied to all bullet weapons (not just rifles) |
| Modes | 6 modes from a single box to 10 animation-tracked boxes |
| Hitsounds | Distinct sounds for friendly/enemy and body part hit |
| Debug | Visual overlay showing hit zones |
set g_hitmode 0
Mode 0 (auto) is recommended -- it automatically selects the best mode.
Automatically selects the recommended mode based on server conditions.
A single bounding box covering the entire body. Reference baseline. Fastest, least accurate.
Three boxes: head, torso, feet. Matches stock Enemy Territory behaviour.
Three boxes (head, torso, feet) with corrections for crouching, prone, and playdead stances.
Three boxes with animation-accurate head tracking. Good balance of accuracy and performance.
Nine boxes: head, arms, hands, torso, feet -- all tracked per animation frame. High accuracy.
Ten boxes: head, arms, hands, torso, legs, feet -- including full leg tracking. Highest accuracy.
Antilag compensates for network latency by rewinding player positions to match the shooter view at the time of the shot.
| Cvar | Default | Description |
|---|---|---|
| g_hitmodeAntilag | 100 | History buffer length in milliseconds |
| g_hitmodeAntilagLerp | 1 | Enable position interpolation between history frames |
The torso hitbox can be expanded to be more forgiving for close-range shots.
| Cvar | Default | Description |
|---|---|---|
| g_hitmodeFat | 0 | Torso-box size multiplier (0 = default size) |
Prevents double-counting a hit that spans two frames.
| Cvar | Default | Description |
|---|---|---|
| g_hitmodeGhosting | 200 | Ghosting lifetime in milliseconds |
| Cvar | Description |
|---|---|
| g_hitmodeDebug | Bitmask enabling visual hitbox overlays and debug output |
| g_hitmodeZone | Zone index to highlight in debug display |
| g_hitmodeReference | Sets which mode is used as the reference baseline |
| Cvar | Default | Description |
|---|---|---|
| g_hitmode | 0 | Active hitbox mode (0 = auto) |
| g_hitmodeAntilag | 100 | Antilag history in milliseconds |
| g_hitmodeAntilagLerp | 1 | Enable antilag interpolation |
| g_hitmodeFat | 0 | Torso-box size multiplier |
| g_hitmodeGhosting | 200 | Hit-ghost lifetime in milliseconds |
| g_hitmodeReference | 1 | Reference mode for debug comparison |
| g_hitmodeDebug | 0 | Debug overlay bitmask |
| g_hitmodeZone | 0 | Debug zone index |