mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Formatting
This commit is contained in:
parent
36ca9f42e0
commit
eb6fb5d577
|
|
@ -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 );
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue