g_weaponDisable
Base Jedi Academy
Needs review. The inventory/provenance evidence is recorded, but some behavior, options, or attribution still lacks a direct user-facing source.
Controls g_weaponDisable in the game module. Consult the cited behavior reads before relying on values not listed here.
At a glance
| Field | Value |
|---|---|
| Category | Gameplay & combat |
| Module | game |
| Also registered in | game |
| Renderer | All / not renderer-specific |
| Network scope | server-authoritative — Owned or enforced by the server. |
| Derivation | code-trace |
| Confidence | high |
| In-game xdocs | No |
| In-game menu | No |
| Default | 0 |
| Value type | bitmask |
| Restart | No latch flag is registered. |
| Cheat protected | No |
Values
No discrete value list is enforced or documented in the inspected source.
Flags
CVAR_ARCHIVE— saved to the user configurationCVAR_SERVERINFO— published in serverinfo
Provenance
Origin: Base Jedi Academy
- Baseline evidence:
14cea1563762 - Upstream registration evidence: codemp/game/g_main.c:317
- Attribution method:
present-in-openjk-initial-source-import - Attribution confidence:
high - Notes: Identifier is present in OpenJK’s initial Raven source-import snapshot. Dated commit evidence identifies later registration changes relative to the origin snapshot.
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 |
|---|---|---|---|---|
2013-04-07 |
OpenJK | b319c52fd4edMajor codemp cleanup. Ported modbase. Restructured VS2010 projects. |
Changed registration, default, flags, module, renderer scope, handler, or gating; and an exact bound cvar-variable reference. codemp/game/g_main.c, codemp/game/g_xcvar.h |
medium |
2013-09-10 |
OpenJK | b8ba30ff20dcFix mistyped serverinfo cvars. Changed bg_altFighterControl to CVAR_SYSTEMINFO. Precache weapons on map_restart if g_weaponDisable changes. Fixes #376 |
Changed an exact bound cvar-variable reference. codemp/cgame/cg_servercmds.c |
medium |
2015-11-13 |
OpenJK | 5ef5d7214371Merge branch ‘master’ of https://github.com/JACoders/OpenJK |
Changed an exact bound cvar-variable reference. codemp/server/sv_ccmds.cpp |
medium |
2016-03-24 |
EternalJK | c9c6ab99fdd2Merge branch ‘master’ of https://github.com/JACoders/OpenJK into japro |
Changed an exact bound cvar-variable reference. codemp/server/sv_ccmds.cpp |
medium |
2018-01-01 |
jaPRO | d9d510063ce6Merge branch ‘japro-ejk’ |
Changed registration, default, flags, module, renderer scope, handler, or gating; and an exact bound cvar-variable reference. codemp/game/bg_misc.c, codemp/game/g_cmds.c, codemp/game/g_cvar.c and 4 more |
high |
2018-09-10 |
EternalJK | dbfd735d1da2Added jcinfo2 to allow UI to only show Race button when relevant |
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/game/g_xcvar.h |
medium |
2023-12-11 |
jaPRO | 9b57ee1b8566 · PR #55Japro update (#55) |
Changed an exact bound cvar-variable reference. codemp/game/g_main.c |
high |
2024-01-09 |
jaPRO | b5dff40126c7 · PR #82Japro update (#82) |
Changed an exact bound cvar-variable reference. codemp/game/g_main.c |
high |
2024-01-15 |
jaPRO | 7629ca86250a · PR #95Japro update (#95) |
Changed an exact bound cvar-variable reference. codemp/game/g_main.c |
high |
Evidence
- registration: codemp/game/g_xcvar.h:168 (XCVAR_DEF)
- behavior: codemp/game/bg_misc.c:638
- behavior: codemp/game/g_cmds.c:8373
- behavior: codemp/game/g_main.c:2080
- behavior: codemp/game/g_svcmds.c:1089
- behavior: codemp/game/g_cvar.c:375