Formatting

This commit is contained in:
ChocoTaco 2019-01-21 12:21:59 -05:00
parent 36ca9f42e0
commit eb6fb5d577
2 changed files with 17 additions and 11 deletions

View file

@ -1,5 +1,9 @@
//This function is Called at: // GetCounts was made to accurately keep track of how many players
//CreateServer(%mission, %missionType) in Server.cs // are on teams, on the server, on each team, spectator, etc.
// It runs every 5 seconds.
// It has since evolved into the place to inject other services
// and aspects within the server.
//
// //
// To control whether the server auto resets when empty // To control whether the server auto resets when empty
// $Host::EmptyServerReset = 0; // $Host::EmptyServerReset = 0;
@ -7,16 +11,17 @@
package StartTeamCounts package StartTeamCounts
{ {
function CreateServer( %mission, %missionType ) function CreateServer( %mission, %missionType )
{ {
parent::CreateServer( %mission, %missionType ); parent::CreateServer( %mission, %missionType );
//Call for a GetTeamCount update
GetTeamCounts( %game, %client, %respawn );
//Make sure teamchange variable is set //Make sure teamchange variable is set
ResetClientChangedTeams(); ResetClientChangedTeams();
//Whether the server auto restarts when empty or not //Whether the server auto restarts when empty or not
$Host::Dedicated = $Host::EmptyServerReset; $Host::Dedicated = $Host::EmptyServerReset;
//Call for a GetTeamCount update
GetTeamCounts( %game, %client, %respawn );
} }
}; };

View file

@ -12,6 +12,7 @@
// $Host::PUGautoPasswordLimit = 10; // $Host::PUGautoPasswordLimit = 10;
// The PUG password you want // The PUG password you want
// $Host::PUGPassword = "pickup"; // $Host::PUGPassword = "pickup";
//
function CheckPUGpassword() function CheckPUGpassword()
{ {