cg_drawCrosshairNames
Base Jedi Academy
Controls target-name display below the crosshair. Zero disables it, negative values display a name only while the crosshair remains on the target, and positive values are the fade duration in seconds.
At a glance
| Field | Value |
|---|---|
| Category | Crosshair & aiming |
| Feature family | Crosshair |
| Module | cgame |
| Also registered in | cgame, ui |
| Renderer | All / not renderer-specific |
| Network scope | client-only — Local to the client/UI/renderer. |
| Derivation | mixed |
| Confidence | high |
| In-game xdocs | Yes — codemp/ui/ui_xdocs.h:586 |
| In-game menu | Yes — setup.menu:2642 |
| Default | 1 |
| Value type | float |
| Restart | No latch flag is registered. |
| Cheat protected | No |
Values
| Value | Meaning | Evidence |
|---|---|---|
0 |
Do not draw target names. | codemp/cgame/cg_draw.c:9482 |
<0 |
Draw only while the crosshair is currently on the target; do not fade afterward. | codemp/cgame/cg_draw.c:9513 |
>0 |
Fade for this many seconds. | codemp/cgame/cg_draw.c:9517 |
Flags
CVAR_ARCHIVE— saved to the user configuration
Registration-specific defaults
| Default | Module | Renderer | Compile condition |
|---|---|---|---|
1 |
cgame |
— |
always |
1 |
ui |
— |
always |
Provenance
Origin: Base Jedi Academy
- Baseline evidence:
14cea1563762 - Upstream registration evidence: codemp/cgame/cg_main.c:902
- 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/cgame/cg_main.c, codemp/cgame/cg_xcvar.h |
medium |
2013-09-05 |
OpenJK | 9bc49a503050UI cleanup. Unused functions |
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/ui/ui_main.c |
medium |
2013-09-28 |
OpenJK | 5cd41b41c941[MP] Port the xcvar stuff and clean up cvar usage in UI. Few minor tweaks in UI code for cleanup/was unused. |
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/ui/ui_main.c |
medium |
2013-09-28 |
OpenJK | 8fdb5fb65dbe[MP] The cvar files for previous commit … |
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/ui/ui_xcvar.h |
medium |
2013-09-30 |
OpenJK | 2ca29aebe0e9[MP] Fix more defaults for saber names and team names. Don’t register cg_viewsize needlessly on client startup, update cvar as soon as it’s changed |
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/ui/ui_xcvar.h |
medium |
2018-09-03 |
jaPRO | bdcd618c6771Import japro cgame |
Changed an exact bound cvar-variable reference. codemp/cgame/cg_draw.c |
high |
2019-03-21 |
EternalJK | 24201fb2397fcg_drawCrosshairNames controls fade time: -1 = disable fading altogether |
Changed an exact bound cvar-variable reference. codemp/cgame/cg_draw.c |
medium |
2025-12-11 |
EternalJK | 24fb55d23bfe · PR #281Add configurable crosshair name colors and opacity (#281) |
Changed an exact bound cvar-variable reference. codemp/cgame/cg_draw.c, codemp/ui/ui_xdocs.h |
medium |
Evidence
- registration: codemp/cgame/cg_xcvar.h:273 (XCVAR_DEF)
- registration: codemp/ui/ui_xcvar.h:39 (XCVAR_DEF)
- behavior: codemp/cgame/cg_draw.c:9513
- behavior: codemp/cgame/cg_draw.c:9482
- behavior: codemp/cgame/cg_draw.c:9517
- behavior: codemp/cgame/cg_draw.c:9463
- behavior: codemp/cgame/cg_draw.c:9466
- documentation: codemp/ui/ui_xdocs.h:586