mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Formatting
This commit is contained in:
parent
d8158b7e76
commit
40be14dad6
|
|
@ -48,16 +48,13 @@ function GetTeamCounts( %game, %client, %respawn )
|
|||
%client = ClientGroup.getObject(%i);
|
||||
|
||||
//if(!%client.isAIControlled())
|
||||
$PlayerCount[%client.team]++;
|
||||
$PlayerCount[%client.team]++;
|
||||
}
|
||||
|
||||
//echo ("Clientgroup " @ ClientGroup.getCount());
|
||||
//echo ("$PlayerCount[0] " @ $PlayerCount[0]);
|
||||
//echo ("$PlayerCount[1] " @ $PlayerCount[1]);
|
||||
//echo ("$PlayerCount[2] " @ $PlayerCount[2]);
|
||||
//echo ("client.team " @ %client.team);
|
||||
|
||||
//Other variables
|
||||
|
||||
//Amount of players on teams
|
||||
$TotalTeamPlayerCount = $PlayerCount[1] + $PlayerCount[2];
|
||||
//Amount of all players including observers
|
||||
|
|
@ -65,12 +62,11 @@ function GetTeamCounts( %game, %client, %respawn )
|
|||
//Difference Variables
|
||||
$Team1Difference = $PlayerCount[1] - $PlayerCount[2];
|
||||
$Team2Difference = $PlayerCount[2] - $PlayerCount[1];
|
||||
|
||||
|
||||
//Start Base Rape Notify
|
||||
schedule(500, 0, "NBRStatusNotify", %game);
|
||||
//Start Team Balance Notify
|
||||
schedule(1000, 0, "TeamBalanceNotify", %game);
|
||||
schedule(1000, 0, "TeamBalanceNotify", %game, %client, %respawn );
|
||||
//Start AntiCloak
|
||||
schedule(1500, 0, "ActivateAntiCloak", %game);
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ function NBRAssetSound( %game, %sourceObject )
|
|||
{
|
||||
%client = %sourceObject;
|
||||
|
||||
if( !%client.NBRAssetSoundMsgPlayed )
|
||||
if( !%client.NBRAssetSoundMsgPlayed && $CurrentMissionType $= "CTF" && $Host::EnableNoBaseRapeNotify && !$Host::TournamentMode && $Host::EvoNoBaseRapeEnabled )
|
||||
{
|
||||
messageClient(%sourceObject.client, 'MsgNoBaseRapeNotify', '\c2No Base Rape is enabled until %1 players.', $Host::EvoNoBaseRapeClassicPlayerCount );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue