ui_selectedModelIndex

Base Jedi Academy

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

Engine-managed. The game maintains this value itself, so it is not a setting to change by hand: it is internal UI/engine state, hidden from every cvar listing (CVAR_INTERNAL).

Controls ui_selectedModelIndex in the ui module. Consult the cited behavior reads before relying on values not listed here.

At a glance

Field Value
Default -1
Value type enum
Restart No latch flag is registered.
Manually settable No; the game writes this value.
Cheat protected No
Network scope client-only: Local to the client/UI/renderer.
Category HUD & interface
Module ui
Renderer All / not renderer-specific
Derivation code-trace
Confidence high
Added 2013-04-08 in 14cea1563 (how to compare this against your build)
In-game xdocs No
In-game menu Yes: ingame_player.menu:207, player.menu:492

Values

Value Meaning Evidence
-1 Selects the code path tested for value -1. codemp/ui/ui_shared.c:5790

Flags

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-08-11 OpenJK 794718e3fdfb
Merge pull request #344 from Razish/qvmtest
Changed an exact bound cvar-variable reference. codemp/ui/ui_main.c medium
2013-09-05 OpenJK 9bc49a503050
UI cleanup. Unused functions
Changed registration, default, flags, module, renderer scope, handler, or gating; and an exact bound cvar-variable reference. 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; and an exact bound cvar-variable reference. 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-01-06 EternalJK a2acfb6b9129
Merge pull request #11 from Bucky21659/master
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/ui/ui_xcvar.h medium
2018-09-03 jaPRO bdcd618c6771
Import japro cgame
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/ui/ui_xcvar.h high
2019-03-19 EternalJK 0b9f190a7a4b
Reset ui_selectedModelIndex (last selected model icon) if the number of models counted has changed
Changed registration, default, flags, module, renderer scope, handler, or gating; and an exact bound cvar-variable reference. codemp/ui/ui_main.c, codemp/ui/ui_xcvar.h medium
2019-03-19 EternalJK 713662027af3
Check model cvar for team skin and update profile menu accordingly.
Changed an exact bound cvar-variable reference. codemp/ui/ui_main.c medium
2019-03-21 EternalJK 95dcf4d6228f
Fix crash
Changed an exact bound cvar-variable reference. codemp/ui/ui_main.c medium
2019-04-11 EternalJK a649365161ad
Ignore mutant_racnor and r5d2 in profile menu list
Changed an exact bound cvar-variable reference. codemp/ui/ui_main.c medium
2019-04-11 EternalJK 4fdbdfbd0443
Fix custom jedi models being reset when closing ingame profile menu.
Changed an exact bound cvar-variable reference. codemp/ui/ui_main.c medium
2019-06-13 EternalJK 49e91d910266
Filter custom skins/species/hilts out of player menus on sv_pure servers
Changed an exact bound cvar-variable reference. codemp/ui/ui_main.c medium
2019-06-13 EternalJK b6f9c97643c4
Don’t highlight anything in model list if no model is selected (ui_selectedModelIndex -1)
Changed an exact bound cvar-variable reference. codemp/ui/ui_shared.c medium

Evidence

Generated from source commit c722804317d7 on 2026-09-28. Anything merged after that is not reflected here.