g_tweakWeapons
jaPRO
Needs review. The inventory/provenance evidence is recorded, but some behavior, options, or attribution still lacks a direct user-facing source.
Set with tweakWeapons. 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 /tweakWeapons 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 | tweakWeapons |
| 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 tweakWeapons 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 | Nonrandom DEMP2 | — |
| 1 | 2 | Increased DEMP2 primary damage | — |
| 2 | 4 | Decreased disruptor alt damage | — |
| 3 | 8 | Nonrandom bowcaster spread | — |
| 4 | 16 | Increased repeater alt damage | — |
| 5 | 32 | Nonrandom flechette primary spread | — |
| 6 | 64 | Decreased flechette alt damage | — |
| 7 | 128 | Nonrandom flechette alt spread | — |
| 8 | 256 | Increased concussion rifle alt damage | — |
| 9 | 512 | Removed projectile knockback | — |
| 10 | 1024 | Stun baton lightning gun | — |
| 11 | 2048 | Stun baton shocklance | — |
| 12 | 4096 | Projectile gravity | — |
| 13 | 8192 | Allow center muzzle | — |
| 14 | 16384 | Pseudo random weapon spread | — |
| 15 | 32768 | Fix explosive hitbox | — |
| 16 | 65536 | Rocket alt fire redeemer | — |
| 17 | 131072 | Infinite ammo | — |
| 18 | 262144 | Stun baton heal gun | — |
| 19 | 524288 | Weapons can damage vehicles | codemp/game/g_local.h:213 |
| 20 | 1048576 | Allow gunroll | — |
| 21 | 2097152 | Fast weaponswitch | — |
| 22 | 4194304 | Impact nitrons | — |
| 23 | 8388608 | Flechette stake gun | — |
| 24 | 16777216 | Fix dropped mine ammo count | — |
| 25 | 33554432 | JK2 Style Alt Tripmine | — |
| 26 | 67108864 | Projectile Sniper | codemp/game/g_local.h:220 |
| 27 | 134217728 | Tribes tweaks | codemp/game/g_local.h:221 |
| 28 | 268435456 | Slow sniper fire rate | — |
| 29 | 536870912 | Make rockets solid for their owners | — |
| 30 | 1073741824 | Lower max damage for pistol alt fire | — |
Flags
CVAR_ARCHIVE: saved to the user configuration
Provenance
Origin: jaPRO
- Ultimate-origin introduction:
d9d510063ce6in jaPRO (content authored2014-01-11, integrated2018-01-01) - Upstream registration evidence: codemp/game/g_xcvar.h:219
- 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 | 2014-01-11 |
— | 2018-01-01 |
d9d510063ce6 |
Shared integration commit |
| TaystJK | 2014-01-11 |
— | 2018-01-01 |
d9d510063ce6 |
Shared integration commit |
| jaPRO | 2014-01-11 |
— | 2018-01-01 |
d9d510063ce6 |
Ultimate origin |
| Vulkan | 2014-01-11 |
— | 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-02-25 |
EternalJK | 09e74095ff07Add stun baton to roll styles, let ppl roll with it rewrite race weapon giving code a bit |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c |
medium |
2018-08-20 |
EternalJK | fa2b5ba6883bMerge branch ‘feature/update-game’ |
Changed an exact bound cvar-variable reference. codemp/game/g_weapon.c |
medium |
2018-09-03 |
EternalJK | 6e78add659deMerge remote-tracking branch ‘videoP/master’ |
Changed an exact bound cvar-variable reference. codemp/game/g_cmds.c |
medium |
2018-10-11 |
jaPRO | d5b95947d04fMerge remote-tracking branch ‘videoP-jaPRO/master’ |
Changed an exact bound cvar-variable reference. codemp/game/g_weapon.c |
high |
2020-05-16 |
jaPRO | 0bfdb71aee77Merge remote-tracking branch ‘videoP-jaPRO/master’ |
Changed an exact bound cvar-variable reference. codemp/game/g_weapon.c |
high |
2020-06-14 |
jaPRO | fb24d6a98965Merge remote-tracking branch ‘videoP-jaPRO/master’ |
Changed an exact bound cvar-variable reference. codemp/game/ai_main.c, codemp/game/bg_pmove.c, codemp/game/g_weapon.c |
high |
2020-06-17 |
jaPRO | 27b9e6ab27a4Merge remote-tracking branch ‘videoP-jaPRO/master’ |
Changed an exact bound cvar-variable reference. codemp/game/g_combat.c |
high |
2023-12-11 |
jaPRO | 9b57ee1b8566 · PR #55Japro update (#55) |
Changed an exact bound cvar-variable reference. codemp/game/ai_main.c, codemp/game/g_combat.c, codemp/game/g_missile.c and 1 more |
high |
2023-12-12 |
TaystJK | e194863d03f8Fix some compiler warnings |
Changed an exact bound cvar-variable reference. codemp/game/g_weapon.c |
medium |
2023-12-21 |
jaPRO | 41c7e75be47a · PR #57Japro update (#57) |
Changed an exact bound cvar-variable reference. codemp/game/NPC_AI_Jedi.c, codemp/game/g_weapon.c |
high |
2023-12-21 |
jaPRO | edec69cec7d0 · PR #58Japro update (#58) |
Changed an exact bound cvar-variable reference. codemp/game/g_weapon.c |
high |
2023-12-27 |
TaystJK | 9b0d32775232tribes wep tweaks |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c, codemp/game/g_combat.c, codemp/game/g_weapon.c |
medium |
2023-12-28 |
jaPRO | 3567d72d98c5 · PR #64Update japro (#64) |
Changed an exact bound cvar-variable reference. codemp/game/g_combat.c, codemp/game/g_cvar.c, codemp/game/g_weapon.c |
high |
2023-12-29 |
jaPRO | 06c84155e1fb · PR #65Japro fixup (#65) |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c, codemp/game/g_client.c, codemp/game/g_combat.c and 3 more |
high |
2023-12-31 |
jaPRO | b4dc4332b515 · PR #69Japro update (#69) |
Changed an exact bound cvar-variable reference. codemp/game/ai_main.c, codemp/game/bg_pmove.c, codemp/game/g_cmds.c and 3 more |
high |
2024-01-03 |
jaPRO | 9e120086add8 · PR #71Japro update (#71) |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c, codemp/game/g_weapon.c |
high |
2024-01-03 |
jaPRO | c644ae832bad · PR #74Japro update (#74) |
Changed an exact bound cvar-variable reference. codemp/game/g_items.c, codemp/game/g_missile.c |
high |
2024-01-03 |
jaPRO | e17f0f8fa133 · PR #75Japro update (#75) |
Changed an exact bound cvar-variable reference. codemp/game/g_weapon.c |
high |
2024-01-04 |
jaPRO | cab839d15251 · PR #77Japro update (#77) |
Changed an exact bound cvar-variable reference. codemp/game/g_items.c |
high |
2024-01-04 |
TaystJK | 0129a3137221Remove some blank spaces/newlines and a code duplication |
Changed an exact bound cvar-variable reference. codemp/game/g_weapon.c |
medium |
2024-01-06 |
jaPRO | 668338988def · PR #79Japro update (#79) |
Changed an exact bound cvar-variable reference. codemp/game/g_items.c, codemp/game/g_weapon.c |
high |
2024-01-07 |
jaPRO | 931f5d5c9044 · PR #80Japro update (#80) |
Changed an exact bound cvar-variable reference. codemp/game/g_combat.c, codemp/game/g_items.c, codemp/game/g_main.c and 1 more |
high |
2024-01-07 |
jaPRO | 751a7a93c325 · PR #81Japro update (#81) |
Changed an exact bound cvar-variable reference. codemp/game/bg_slidemove.c, codemp/game/g_weapon.c |
high |
2024-01-09 |
jaPRO | b5dff40126c7 · PR #82Japro update (#82) |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c, codemp/game/bg_saber.c, codemp/game/bg_saberLoad.c and 7 more |
high |
2024-01-10 |
jaPRO | 90d3c68f2da9 · PR #84Japro update (#84) |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c, codemp/game/g_client.c, codemp/game/g_missile.c and 2 more |
high |
2024-01-11 |
jaPRO | 7a38e0e45170 · PR #87Japro update (#87) |
Changed an exact bound cvar-variable reference. codemp/game/g_combat.c, codemp/game/g_items.c, codemp/game/g_missile.c and 1 more |
high |
2024-01-13 |
jaPRO | 1967d08be20f · PR #89Japro update (#89) |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c, codemp/game/g_weapon.c |
high |
2024-01-14 |
jaPRO | 367673403724 · PR #92Japro update (#92) |
Changed an exact bound cvar-variable reference. codemp/game/g_combat.c, codemp/game/g_items.c |
high |
2024-01-15 |
jaPRO | 7629ca86250a · PR #95Japro update (#95) |
Changed an exact bound cvar-variable reference. codemp/game/g_client.c, codemp/game/g_combat.c, codemp/game/g_utils.c and 1 more |
high |
2024-01-16 |
jaPRO | cfe93fa637b5 · PR #97Japro update (#97) |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c, codemp/game/g_weapon.c |
high |
2024-01-17 |
TaystJK | c3293a76c178 · PR #100conc sniper uses energy like phase rifle, mortar FX tweak, bounce strength (#100) |
Changed an exact bound cvar-variable reference. codemp/game/g_active.c, codemp/game/g_weapon.c |
medium |
2024-01-21 |
jaPRO | 8cd2ef9d8dcb · PR #104Japro update (#104) |
Changed an exact bound cvar-variable reference. codemp/game/g_weapon.c |
high |
2024-01-22 |
jaPRO | 2812a6c459f5 · PR #108Japro updates (#108) |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c, codemp/game/g_weapon.c |
high |
2024-01-23 |
jaPRO | 4ebe42313373 · PR #109Japro updates (#109) |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c, codemp/game/g_weapon.c |
high |
2024-01-24 |
jaPRO | 93dfa66dc8e5 · PR #112Japro updates (#112) |
Changed an exact bound cvar-variable reference. codemp/game/g_active.c, codemp/game/w_force.c |
high |
2024-01-24 |
jaPRO | 388fc553f371 · PR #114Japro updates (#114) |
Changed an exact bound cvar-variable reference. codemp/game/g_active.c, codemp/game/g_combat.c, codemp/game/w_force.c |
high |
2024-01-25 |
jaPRO | cd07288a30a6 · PR #116Japro updates (#116) |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c, codemp/game/g_weapon.c, codemp/game/w_force.c |
high |
2024-01-31 |
jaPRO | a5c04e80d08f · PR #127Japro updates (#127) |
Changed an exact bound cvar-variable reference. codemp/game/g_client.c, codemp/game/g_missile.c, codemp/game/g_weapon.c |
high |
2024-02-03 |
jaPRO | 97cd4091c2ca · PR #129Japro update (#129) |
Changed an exact bound cvar-variable reference. codemp/game/g_missile.c |
high |
2024-02-03 |
TaystJK | cf5f50918b74 · PR #125Small fixes (#125) |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c |
medium |
2024-02-05 |
jaPRO | 7dce9a576823 · PR #134Japro update (#134) |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c, codemp/game/g_cmds.c |
high |
2024-02-08 |
jaPRO | c43219e502b9 · PR #136Japro update - Surf Movement /move surf (#136) |
Changed an exact bound cvar-variable reference. codemp/game/g_weapon.c |
high |
2024-02-19 |
TaystJK | 0cf63a042a7b · PR #154fix thrownade (#154) |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c |
medium |
2024-02-26 |
TaystJK | cd784cbf26da · PR #157Upstream update (#157) |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c |
medium |
2024-02-27 |
jaPRO | 0683da475d2a[jaPRO/Tribes] Fixup tribes check |
Changed an exact bound cvar-variable reference. codemp/game/g_active.c |
high |
2024-02-29 |
jaPRO | 1119453aa232 · PR #159Japro update (#159) |
Changed an exact bound cvar-variable reference. codemp/game/g_weapon.c |
high |
2024-03-05 |
TaystJK | 9912f30e367f · PR #166Japro update (#166) |
Changed an exact bound cvar-variable reference. codemp/game/ai_main.c |
medium |
2024-03-20 |
TaystJK | 5f092f170d52fix some weaponswitch tribes stuff? |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c |
medium |
2024-04-28 |
TaystJK | 959f7e18d624 · PR #191Rend2 & jaPRO updates (#191) |
Changed an exact bound cvar-variable reference. codemp/game/g_missile.c |
medium |
2024-05-14 |
jaPRO | 829a59ad0875 · PR #200[jaPRO] Fixup clang compiler warnings (#200) |
Changed an exact bound cvar-variable reference. codemp/game/g_missile.c |
high |
2024-05-24 |
jaPRO | 8188f06a4e61 · PR #204Japro update (#204) |
Changed an exact bound cvar-variable reference. codemp/game/g_combat.c, codemp/game/g_weapon.c, codemp/game/w_force.c |
high |
2024-05-28 |
jaPRO | 87145eba654c · PR #206Japro update (#206) |
Changed an exact bound cvar-variable reference. codemp/game/bg_pmove.c, codemp/game/g_cmds.c, codemp/game/g_combat.c and 1 more |
high |
2024-09-22 |
jaPRO | 100cdfc116b9 · PR #212Japro Update |
Changed an exact bound cvar-variable reference. codemp/game/g_weapon.c |
high |
Evidence
- registration: codemp/game/g_xcvar.h:218 (XCVAR_DEF)
- behavior: codemp/game/NPC_AI_Jedi.c:6310
- behavior: codemp/game/NPC_spawn.c:1539
- behavior: codemp/game/ai_main.c:4639
- behavior: codemp/game/ai_main.c:4653
- behavior: codemp/game/ai_main.c:4657
- documentation: docs/japro_docs.md:38
Generated from source commit c722804317d7 on 2026-09-28. Anything merged after that is not reflected here.