cg_debugGun
OpenJK
Needs review. The inventory/provenance evidence is recorded, but some behavior, options, or attribution still lacks a direct user-facing source.
Controls cg_debugGun in the cgame module. Consult the cited behavior reads before relying on values not listed here.
At a glance
| Field | Value |
|---|---|
| Default | 0 |
| Value type | bool |
| Restart | No latch flag is registered. |
| Manually settable | Yes |
| Cheat protected | Yes |
| Network scope | client-only: Local to the client/UI/renderer. |
| Category | Engine & diagnostics |
| Module | cgame |
| Renderer | All / not renderer-specific |
| Derivation | code-trace |
| Confidence | medium |
| Added | 2013-04-08 in b319c52fd needs review (how to compare this against your build) |
| In-game xdocs | No |
| In-game menu | No |
Values
| Value | Meaning | Evidence |
|---|---|---|
0 |
Disabled. | codemp/cgame/cg_weapons.c:898 |
1 |
Enabled. | codemp/cgame/cg_weapons.c:898 |
Flags
CVAR_CHEAT: requires cheats
Provenance
Origin: OpenJK
- Ultimate-origin introduction:
b319c52fd4edin OpenJK (content authored2013-04-07, integrated2013-04-07) - Upstream registration evidence: codemp/cgame/cg_xcvar.h:77
- Attribution method:
shared-earliest-commit-lineage-order - Attribution confidence:
medium - Notes: The earliest authored/submitted introduction is shared by openjk, eternaljk, rend2, taystjk, japro, newjk, vulkan; fork-lineage order selects openjk.
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 |
|---|---|---|---|---|---|
| OpenJK | 2013-04-07 |
— | 2013-04-07 |
b319c52fd4ed |
Ultimate origin |
| EternalJK | 2013-04-07 |
— | 2013-04-07 |
b319c52fd4ed |
Shared integration commit |
| rend2 | 2013-04-07 |
— | 2013-04-07 |
b319c52fd4ed |
Shared integration commit |
| TaystJK | 2013-04-07 |
— | 2013-04-07 |
b319c52fd4ed |
Shared integration commit |
| jaPRO | 2013-04-07 |
— | 2013-04-07 |
b319c52fd4ed |
Shared integration commit |
| NewJK / NewMod | 2013-04-07 |
— | 2013-04-07 |
b319c52fd4ed |
Shared integration commit |
| Vulkan | 2013-04-07 |
— | 2013-04-07 |
b319c52fd4ed |
Shared integration commit |
Evidence
- registration: codemp/cgame/cg_xcvar.h:297 (XCVAR_DEF)
- behavior: codemp/cgame/cg_weapons.c:898
- behavior: codemp/cgame/cg_weapons.c:900
Generated from source commit c722804317d7 on 2026-09-28. Anything merged after that is not reflected here.