g_tweakSaber
jaPRO
Needs review. The inventory/provenance evidence is recorded, but some behavior, options, or attribution still lacks a direct user-facing source.
Set with tweakSaber. Each bit is a separate option, so the command toggles one of them per use and leaves the rest alone. Setting a raw value by hand replaces every option at once.
Configured with /tweakSaber command.
At a glance
| Field | Value |
|---|---|
| Default | 0 |
| Value type | bitmask |
| Restart | No latch flag is registered. |
| Manually settable | Yes |
| Cheat protected | No |
| Configure with | tweakSaber |
| Network scope | server-authoritative: Owned or enforced by the server. |
| Category | Gameplay & combat |
| Module | game |
| Renderer | All / not renderer-specific |
| Derivation | documented |
| Confidence | medium |
| Added | 2018-01-01 in d9d510063 needs review (how to compare this against your build) |
| In-game xdocs | No |
| In-game menu | No |
Bits
Use tweakSaber to toggle one option at a time; see the command page for syntax. The value column is that bit on its own. The labels come from the source table.
| Bit | Value | Meaning | Read by |
|:–|:–|:–|:–|
| 0 | 1 | Skip saber interpolate for MP dmgs | — |
| 1 | 2 | JK2 1.02 style damage system | — |
| 2 | 4 | Reduced saberblock for MP damages | — |
| 3 | 8 | Reduce saberdrops for MP damages | — |
| 4 | 16 | Allow rollcancel for saber swings | codemp/game/g_local.h:277 |
| 5 | 32 | JK2 1.02 style swings | codemp/game/g_local.h:278 |
| 6 | 64 | Fixed saberswitch | codemp/game/g_local.h:279 |
| 7 | 128 | No aim backslash | codemp/game/g_local.h:280 |
| 8 | 256 | JK2 red DFA | codemp/game/g_local.h:281 |
| 9 | 512 | Fix yellow DFA | — |
| 10 | 1024 | Spin red DFA | — |
| 11 | 2048 | Spin backslash | codemp/game/g_local.h:284 |
| 12 | 4096 | JK2 lunge | — |
| 13 | 8192 | Remove red DFA Boost | — |
| 14 | 16384 | Make red DFA cost 0 forcepoints | — |
| 15 | 32768 | Remove all backslash restrictions | — |
| 16 | 65536 | Allow sabergun | — |
| 17 | 131072 | Allow fast style change for single saber | — |
| 18 | 262144 | New dmg calculation for SP damage (no vel dmg) | — |
| 19 | 524288 | The slow blade penetrates the sheild | — |
| 20 | 1048576 | New dmg calculation for SP damage (capped vel dmg) | — |
| 21 | 2097152 | JA+ MP damage | — |
Flags
CVAR_ARCHIVE: saved to the user configuration
Provenance
Origin: jaPRO
- Ultimate-origin introduction:
d9d510063ce6in jaPRO (content authored2015-04-17, integrated2018-01-01) - Upstream registration evidence: codemp/game/g_xcvar.h:194
- Attribution method:
squash-feature-group-explicit-credit - Attribution confidence:
medium - Notes: The earliest authored/submitted introduction is shared by eternaljk, taystjk, japro, vulkan; fork-lineage order selects eternaljk. The identifier’s single-prefix squash feature group explicitly credits japro.
Dated project introductions
Authored dates come from the exact registration’s first content commit, PR dates identify when work was proposed to each project, and integration dates come from each first-parent mainline. A project merging first does not override earlier upstream authorship or submission.
| Project | Authored | PR opened | Integrated | Commit | Relationship |
|---|---|---|---|---|---|
| EternalJK | 2015-04-17 |
— | 2018-01-01 |
d9d510063ce6 |
Shared integration commit |
| TaystJK | 2015-04-17 |
— | 2018-01-01 |
d9d510063ce6 |
Shared integration commit |
| jaPRO | 2015-04-17 |
— | 2018-01-01 |
d9d510063ce6 |
Ultimate origin |
| Vulkan | 2015-04-17 |
— | 2018-01-01 |
d9d510063ce6 |
Shared integration commit |
Later changes
These commits occur after the ultimate-origin introduction on TaystJK’s inherited first-parent lineage. Registration evidence is exact; behavior evidence requires a changed bound cvar reference or a changed registered command-handler hunk.
| Date | Change source | Commit / subject | Evidence | Confidence |
|---|---|---|---|---|
2018-07-22 |
EternalJK | fae0fd307416Merge branch ‘feature/update-game’ into develop |
Changed an exact bound cvar-variable reference. codemp/game/g_active.c |
medium |
2018-08-20 |
EternalJK | fa2b5ba6883bMerge branch ‘feature/update-game’ |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c |
medium |
2018-09-03 |
EternalJK | 6e78add659deMerge remote-tracking branch ‘videoP/master’ |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c, codemp/game/bg_saber.c |
medium |
2018-09-03 |
jaPRO | bdcd618c6771Import japro cgame |
Changed an exact bound cvar-variable reference. codemp/game/bg_saber.c, codemp/game/g_active.c |
high |
2018-09-11 |
EternalJK | 6b8655edcd6aok |
Changed an exact bound cvar-variable reference. codemp/game/g_active.c |
medium |
2018-10-10 |
EternalJK | 2af38213b793Merge branch ‘master’ of https://github.com/eternalcodes/EternalJK |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c, codemp/game/bg_saber.c, codemp/game/w_saber.c |
high |
2018-10-11 |
jaPRO | d5b95947d04fMerge remote-tracking branch ‘videoP-jaPRO/master’ |
Changed an exact bound cvar-variable reference. codemp/game/w_saber.c |
high |
2020-03-16 |
EternalJK | 27748943c598Fix active saber blocks with MP damages |
Changed an exact bound cvar-variable reference. codemp/game/w_saber.c |
medium |
2020-05-16 |
EternalJK | 64349df34731JK2 style swing improvements |
Changed an exact bound cvar-variable reference. codemp/game/bg_local.h, codemp/game/bg_pmove.c, codemp/game/bg_saber.c |
medium |
2020-05-20 |
EternalJK | c01c9ba41a7ffix client staff/duals attack prediction after JK2 swing style updates |
Changed an exact bound cvar-variable reference. codemp/game/bg_saber.c |
medium |
2020-06-15 |
EternalJK | f124ea7347c4Fix JK2 swing sabertweak x2 |
Changed an exact bound cvar-variable reference. codemp/game/bg_panimate.c, codemp/game/bg_saber.c |
medium |
2023-12-11 |
jaPRO | 9b57ee1b8566 · PR #55Japro update (#55) |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c, codemp/game/w_saber.c |
high |
2024-04-28 |
TaystJK | 959f7e18d624 · PR #191Rend2 & jaPRO updates (#191) |
Changed an exact bound cvar-variable reference. codemp/game/w_saber.c |
medium |
2024-05-02 |
jaPRO | 13eac340e1ce · PR #193Japro update (#193) |
Changed an exact bound cvar-variable reference. codemp/game/g_cmds.c |
high |
Evidence
- registration: codemp/game/g_xcvar.h:193 (XCVAR_DEF)
- behavior: codemp/game/ai_main.c:8387
- behavior: codemp/game/bg_panimate.c:2851
- behavior: codemp/game/bg_pmove.c:4480
- behavior: codemp/game/bg_pmove.c:6270
- behavior: codemp/game/bg_pmove.c:9101
- documentation: docs/japro_docs.md:13
Generated from source commit c722804317d7 on 2026-09-28. Anything merged after that is not reflected here.