Slowly making changeteam work, make sure the MOTD opens when the player first joins
This commit is contained in:
parent
835bcc8145
commit
c545731ac6
|
@ -25,30 +25,18 @@ void
|
||||||
ClientGame_Init(float apilevel, string enginename, float engineversion)
|
ClientGame_Init(float apilevel, string enginename, float engineversion)
|
||||||
{
|
{
|
||||||
Obituary_Init();
|
Obituary_Init();
|
||||||
|
|
||||||
registercommand("+sciscore");
|
registercommand("+sciscore");
|
||||||
registercommand("-sciscore");
|
registercommand("-sciscore");
|
||||||
registercommand("chooseteam");
|
registercommand("changeteam");
|
||||||
}
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void VGUI_ShowMOTD(void);
|
void VGUI_ShowMOTD(void);
|
||||||
void CMD_ChooseTeam(void);
|
void CMD_ChooseTeam(void);
|
||||||
|
|
||||||
void
|
void
|
||||||
ClientGame_InitDone(void)
|
ClientGame_InitDone(void)
|
||||||
{
|
{
|
||||||
if (serverkeyfloat("sv_playerslots") > 1)
|
|
||||||
VGUI_ShowMOTD();
|
VGUI_ShowMOTD();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue