mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-19 16:14:44 +00:00
Always obs
This commit is contained in:
parent
35811e33f8
commit
d9ee54045b
|
|
@ -1532,32 +1532,36 @@ function serverCmdClientJoinGame(%client)
|
||||||
{
|
{
|
||||||
if($LockedTeams)
|
if($LockedTeams)
|
||||||
{
|
{
|
||||||
messageClient( %client, '', "Teams are locked. Ask an admin to set your team." );
|
messageClient( %client, '', "Teams are locked. Wait to be assigned a team." );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Parent::serverCmdClientJoinGame(%client);
|
Parent::serverCmdClientJoinGame(%client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//exec("Scripts/autoexec/votemenu.cs");
|
||||||
function serverCmdClientPickedTeam(%client, %option)
|
function serverCmdClientPickedTeam(%client, %option)
|
||||||
{
|
{
|
||||||
Parent::serverCmdClientPickedTeam(%client, %option); //Put first
|
if(!$Host::TournamentMode)
|
||||||
if($LockedTeams) //Added
|
return;
|
||||||
{
|
|
||||||
if($Host::TournamentMode && %client.team !$= 0) //Added
|
//All roads lead to observer
|
||||||
{
|
if( isObject(%client.player) )
|
||||||
messageClient( %client, '', "Teams are locked. Ask an admin to set your team." );
|
{
|
||||||
schedule(1000, 0, "ClearCenterPrint", %client); //So Press FIRE when ready is cleared, later down the pipe
|
%client.player.scriptKill(0);
|
||||||
serverCmdClientMakeObserver( %client );
|
ClearBottomPrint(%client);
|
||||||
}
|
}
|
||||||
return;
|
Game.forceObserver( %client, "playerChoose" );
|
||||||
}
|
%client.observerMode = "observer";
|
||||||
|
%client.notReady = false;
|
||||||
|
messageClient( %client, '', "Teams are locked. Wait to be assigned a team." );
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
function serverCmdClientTeamChange(%client, %option)
|
function serverCmdClientTeamChange(%client, %option)
|
||||||
{
|
{
|
||||||
if($LockedTeams)
|
if($LockedTeams)
|
||||||
{
|
{
|
||||||
messageClient( %client, '', "Teams are locked. Ask an admin to set your team." );
|
messageClient( %client, '', "Teams are locked. Wait to be assigned a team." );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Parent::serverCmdClientTeamChange(%client, %option);
|
Parent::serverCmdClientTeamChange(%client, %option);
|
||||||
|
|
@ -1613,4 +1617,4 @@ function VoteSound(%teamSpecific, %typename, %arg1, %arg2, %msg)
|
||||||
echo(%vip SPC %msg);
|
echo(%vip SPC %msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue