Skip to content

Commit

Permalink
Classic UI: Base Bot Skill, Physics Ruleset and Weapons Ruleset are n…
Browse files Browse the repository at this point in the history
…ow saved into cvars + Weapon Arena Weapon is now grayed! (#340)
  • Loading branch information
NeonKnightOA committed Apr 7, 2024
1 parent fa41f11 commit 7b8f2aa
Show file tree
Hide file tree
Showing 3 changed files with 212 additions and 161 deletions.
3 changes: 3 additions & 0 deletions code/q3_ui/ui_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ extern vmCvar_t ui_setupchecked;
extern vmCvar_t ui_browserOnlyHumans;
extern vmCvar_t ui_developer;
extern vmCvar_t ui_browserHidePrivate;
extern vmCvar_t ui_botSkill;
extern vmCvar_t ui_physicsRuleset;
extern vmCvar_t ui_weaponsRuleset;

//
// ui_qmenu.c
Expand Down
6 changes: 6 additions & 0 deletions code/q3_ui/ui_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ vmCvar_t ui_browserOnlyHumans;
vmCvar_t ui_setupchecked;
vmCvar_t ui_developer;
vmCvar_t ui_browserHidePrivate;
vmCvar_t ui_botSkill;
vmCvar_t ui_physicsRuleset;
vmCvar_t ui_weaponsRuleset;

// bk001129 - made static to avoid aliasing.
static cvarTable_t cvarTable[] = {
Expand Down Expand Up @@ -276,6 +279,9 @@ static cvarTable_t cvarTable[] = {
{ &ui_setupchecked, "ui_setupchecked", "0", CVAR_ARCHIVE },
{ &ui_developer, "developer", "0", CVAR_CHEAT },
{ &ui_browserHidePrivate, "ui_browserHidePrivate", "1", CVAR_ARCHIVE },
{ &ui_botSkill, "ui_botSkill", "1", CVAR_ARCHIVE },
{ &ui_physicsRuleset, "ui_physicsRuleset", "1", CVAR_ARCHIVE },
{ &ui_weaponsRuleset, "ui_weaponsRuleset", "1", CVAR_ARCHIVE },
{ NULL, "g_localTeamPref", "", 0 }
};

Expand Down
Loading

0 comments on commit 7b8f2aa

Please sign in to comment.