g_forceBasedTeams
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_forceBasedTeams 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, engine-server |
| 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 | Yes; the value is latched. |
| Cheat protected | No |
Values
No discrete value list is enforced or documented in the inspected source.
Flags
CVAR_ARCHIVE— saved to the user configurationCVAR_LATCH— latched until the relevant subsystem or map is restartedCVAR_SERVERINFO— published in serverinfo
Registration-specific defaults
| Default | Module | Renderer | Compile condition |
|---|---|---|---|
0 |
engine-server |
— |
always |
0 |
game |
— |
always |
Provenance
Origin: Base Jedi Academy
- Baseline evidence:
14cea1563762 - Upstream registration evidence: codemp/game/g_main.c:261
- 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. codemp/game/g_main.c, codemp/game/g_xcvar.h |
medium |
2014-01-04 |
OpenJK | 761e55fd73af[MP] Clean up forcepowers validation |
Changed an exact bound cvar-variable reference. codemp/game/w_force.c |
medium |
Evidence
- registration: codemp/game/g_xcvar.h:97 (XCVAR_DEF)
- registration: codemp/server/sv_init.cpp:973 (Cvar_Get)
- behavior: codemp/game/g_cmds.c:1309
- behavior: codemp/game/g_cmds.c:1326
- behavior: codemp/game/g_cmds.c:1256
- behavior: codemp/game/g_cmds.c:1346
- behavior: codemp/game/w_force.c:239