From c545731ac6048d5bf5189494bb9fef68eeffc94d Mon Sep 17 00:00:00 2001 From: Xylemon Date: Wed, 26 Apr 2023 22:20:56 -0700 Subject: [PATCH] Slowly making changeteam work, make sure the MOTD opens when the player first joins --- src/client/init.qc | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/src/client/init.qc b/src/client/init.qc index 923afb7..dc59b91 100644 --- a/src/client/init.qc +++ b/src/client/init.qc @@ -25,31 +25,19 @@ void ClientGame_Init(float apilevel, string enginename, float engineversion) { Obituary_Init(); + registercommand("+sciscore"); registercommand("-sciscore"); - registercommand("chooseteam"); -} - -bool -ClientGame_IsUsingVGUI(void) -{ - /* FTE has a bug with _ infokeys, so we'll accept both formats in case - that gets fixed in the future :/ */ - if (getplayerkeyfloat(player_localnum, "vgui_menus") == 1) - return true; - if (getplayerkeyfloat(player_localnum, "_vgui_menus") == 1) - return true; - - return false; + registercommand("changeteam"); } void VGUI_ShowMOTD(void); void CMD_ChooseTeam(void); + void ClientGame_InitDone(void) { - if (serverkeyfloat("sv_playerslots") > 1) - VGUI_ShowMOTD(); + VGUI_ShowMOTD(); } void