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,22 +1,27 @@
//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;
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

@ -1,7 +1,7 @@
//To activate a password in certain gamemodes // To activate a password in certain gamemodes
//called in Getcounts.cs // called in Getcounts.cs
//and also other options like distance and speed // and also other options like distance and speed
//turn tournament mode off when switched to lak // turn tournament mode off when switched to lak
// Variables // Variables
// Add these to ServerPrefs // Add these to ServerPrefs
@ -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()
{ {