Slowly making changeteam work, make sure the MOTD opens when the player first joins
This commit is contained in:
parent
835bcc8145
commit
c545731ac6
1 changed files with 4 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue