weapon

Base Jedi Academy

Needs review. The inventory/provenance evidence is recorded, but some behavior, options, or attribution still lacks a direct user-facing source.

Runs CG_Weapon_f in the cgame module.

At a glance

Field Value
Category Gameplay & combat
Module cgame
Also registered in cgame
Renderer All / not renderer-specific
Network scope client-only — Local to the client/UI/renderer.
Derivation code-trace
Confidence high
In-game xdocs No
In-game menu Yes — controls.menu:1876, controls.menu:1910, controls.menu:1944
Syntax weapon [arguments]
Cheat protected No

Arguments and gating

No verified argument schema is available beyond the syntax shown above.

Provenance

Origin: Base Jedi Academy

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 a09d4827fb0d
Added /codeJK2/ for JK2. Also did a whole bunch of other crap which I shouldn’t have, in hindsight. Have fun!
Changed registration, default, flags, module, renderer scope, handler, or gating. codeJK2/cgame/cg_consolecmds.cpp medium
2013-04-07 OpenJK b319c52fd4ed
Major codemp cleanup. Ported modbase. Restructured VS2010 projects.
Changed the registered command handler. codemp/cgame/cg_weapons.c medium
2013-08-11 OpenJK 794718e3fdfb
Merge pull request #344 from Razish/qvmtest
Changed the registered command handler. codemp/cgame/cg_weapons.c medium
2013-11-26 OpenJK b2f3e89e2e75
[MP] Improve cg_consolecmds and cg_servercmds to use bsearch.
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/cgame/cg_consolecmds.c medium
2013-11-27 OpenJK f9e6edda7daf
[SP] Improve cg_consolecmds and cg_servercmds to use bsearch.
Changed registration, default, flags, module, renderer scope, handler, or gating. code/cgame/cg_consolecmds.cpp medium
2015-11-24 EternalJK c8f6ea17a324
Remove SP code
Changed registration, default, flags, module, renderer scope, handler, or gating. code/cgame/cg_consolecmds.cpp, codeJK2/cgame/cg_consolecmds.cpp medium
2018-09-03 jaPRO bdcd618c6771
Import japro cgame
Changed the registered command handler. codemp/cgame/cg_weapons.c high
2018-10-10 EternalJK 2af38213b793
Merge branch ‘master’ of https://github.com/eternalcodes/EternalJK
Changed the registered command handler. codemp/cgame/cg_weapons.c high
2019-04-11 EternalJK 915cf4380ca9
Weapon slot 2 cycles to melee or stun baton if neither pistol is available, slot 3 cycles to stun baton if E-11 is not available
Changed the registered command handler. codemp/cgame/cg_weapons.c medium
2024-02-27 TaystJK baa02905f40f · PR #130
Merge pull request #130 from taysta/tribes-clientside
Changed the registered command handler. codemp/cgame/cg_local.h, codemp/cgame/cg_weapons.c medium

Evidence