From 9c5339e262747498c4d043c7e5cf99be7f5e91e4 Mon Sep 17 00:00:00 2001 From: Xylemon Date: Mon, 24 Apr 2023 21:52:54 -0700 Subject: [PATCH] restore +sciscore, the name of sciboard was a mistake some inital importing of the new VGUI stuff --- src/client/cmds.qc | 25 +++++++++++++++++++++---- src/client/draw.qc | 8 ++++---- 2 files changed, 25 insertions(+), 8 deletions(-) diff --git a/src/client/cmds.qc b/src/client/cmds.qc index ae973d7..9eb787c 100644 --- a/src/client/cmds.qc +++ b/src/client/cmds.qc @@ -14,18 +14,35 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +void VGUI_ChooseTeam(void); + int ClientGame_ConsoleCommand(void) { switch(argv(0)) { - case "+sciboard": - g_sciboard = true; + case "+sciscore": + g_sciscore = true; break; - case "-sciboard": - g_sciboard = false; + case "-sciscore": + g_sciscore = false; break; default: return (0); } return (1); } + +void +CMD_ChooseTeam(void) +{ + if (serverkeyfloat("sv_playerslots") <= 1) + return; + + if (serverkeyfloat("teams") > 1) + + /* handle both VGUI and text menus */ +// if (ClientGame_IsUsingVGUI()) + VGUI_ChooseTeam(); +// else +// Textmenu_Toggle("TEAM_SELECT"); +} \ No newline at end of file diff --git a/src/client/draw.qc b/src/client/draw.qc index 3c62b97..9c6146a 100644 --- a/src/client/draw.qc +++ b/src/client/draw.qc @@ -14,7 +14,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -var bool g_sciboard = false; +var bool g_sciscore = false; void ClientGame_PreDraw(void) @@ -23,7 +23,7 @@ ClientGame_PreDraw(void) } void -SH_DrawSciBoard(void) +SH_DrawSciScore(void) { string line; vector pos; @@ -58,6 +58,6 @@ SH_DrawSciBoard(void) void ClientGame_PostDraw(void) { - if (g_sciboard) - SH_DrawSciBoard(); + if (g_sciscore) + SH_DrawSciScore(); }