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:
//CreateServer(%mission, %missionType) in Server.cs
// GetCounts was made to accurately keep track of how many players
// 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
//$Host::EmptyServerReset = 0;
// To control whether the server auto resets when empty
// $Host::EmptyServerReset = 0;
package StartTeamCounts
{
function CreateServer( %mission, %missionType )
{
parent::CreateServer( %mission, %missionType );
//Call for a GetTeamCount update
GetTeamCounts( %game, %client, %respawn );
//Make sure teamchange variable is set
ResetClientChangedTeams();
//Whether the server auto restarts when empty or not
$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
//called in Getcounts.cs
//and also other options like distance and speed
//turn tournament mode off when switched to lak
// To activate a password in certain gamemodes
// called in Getcounts.cs
// and also other options like distance and speed
// turn tournament mode off when switched to lak
// Variables
// Add these to ServerPrefs
@ -12,6 +12,7 @@
// $Host::PUGautoPasswordLimit = 10;
// The PUG password you want
// $Host::PUGPassword = "pickup";
//
function CheckPUGpassword()
{