g_startingWeapons
jaPRO
Needs review. The inventory/provenance evidence is recorded, but some behavior, options, or attribution still lacks a direct user-facing source.
Set with startingWeapons. 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.
Start with saber only default, fall back to melee if no saberattack
At a glance
| Field | Value |
|---|---|
| Default | 8 |
| Value type | bitmask |
| Restart | No latch flag is registered. |
| Manually settable | Yes |
| Cheat protected | No |
| Configure with | startingWeapons |
| 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 startingWeapons 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 |
|:–|:–|:–|:–|
| 1 | 2 | Stun Baton | — |
| 2 | 4 | Melee | — |
| 3 | 8 | Saber | — |
| 4 | 16 | Bryar Pistol | — |
| 5 | 32 | Blaster | — |
| 6 | 64 | Disruptor | — |
| 7 | 128 | Bowcaster | — |
| 8 | 256 | Repeater | — |
| 9 | 512 | Demp2 | — |
| 10 | 1024 | Flechette | — |
| 11 | 2048 | Rocket Launcher | — |
| 12 | 4096 | Thermal | — |
| 13 | 8192 | Trip Mine | — |
| 14 | 16384 | Det Pack | — |
| 15 | 32768 | Concussion Rifle | — |
| 16 | 65536 | Old Bryar Pistol | — |
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:220
- 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-09-03 |
EternalJK | 6e78add659deMerge remote-tracking branch ‘videoP/master’ |
Changed an exact bound cvar-variable reference. codemp/game/g_svcmds.c |
medium |
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_client.c, codemp/game/g_main.c |
high |
2023-12-29 |
jaPRO | 06c84155e1fb · PR #65Japro fixup (#65) |
Changed an exact bound cvar-variable reference. codemp/game/g_client.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:219 (XCVAR_DEF)
- behavior: codemp/game/g_client.c:3861
- behavior: codemp/game/g_client.c:3866
- behavior: codemp/game/g_client.c:3868
- behavior: codemp/game/g_client.c:3870
- behavior: codemp/game/g_client.c:3872
- documentation: docs/japro_docs.md:39
Generated from source commit c722804317d7 on 2026-09-28. Anything merged after that is not reflected here.