Added EmptyServerReset variable

This commit is contained in:
ChocoTaco 2018-11-10 19:55:31 -05:00
parent 0924d1891f
commit f6f82b71a4
3 changed files with 8 additions and 3 deletions

View file

@ -1304,4 +1304,5 @@ $Host::EnableNoBaseRapeNotify = 1;
$Host::EnableTeamBalanceNotify = 1;
$Host::EnableTurretPlayerCount = 10;
$Host::AntiCloakEnable = 1;
$Host::AntiCloakPlayerCount = 6;
$Host::AntiCloakPlayerCount = 6;
$Host::EmptyServerReset = 0;

View file

@ -1,5 +1,8 @@
//This function is Called at:
//CreateServer(%mission, %missionType) in Server.cs
//
//To control whether the server auto resets when empty
//$Host::EmptyServerReset = 0;
package StartTeamCounts {
@ -12,7 +15,7 @@ function CreateServer(%mission, %missionType)
//Make sure our activation variable is set
ResetClientChangedTeams();
//Keeps server Auto Reset off
$Host::Dedicated = 0;
$Host::Dedicated = $Host::EmptyServerReset;
//Call for a GetTeamCount update
GetTeamCounts( %game, %client, %respawn );
@ -62,7 +65,7 @@ function GetTeamCounts( %game, %client, %respawn )
//Start Base Rape Notify
PlayerNotify::AtSpawn( %game, %client, %respawn );
NBRStatusNotify( %game, %client, %respawn );
//Call Team Balance Notify
TeamBalanceNotify::AtSpawn( %game, %client, %respawn );

View file

@ -189,3 +189,4 @@ $Host::Discord = "https://www.Discordapp.com/"; //Your discord
$Host::PUGautoPassword = 0; //Enable or Disable an auto password at a certain amount of players
$Host::PUGautoPasswordLimit = 10; //How many to enable a pug password
$Host::PUGPassword = "pickup"; //pug password
$Host::EmptyServerReset = 1; //Whether or not you want the server to reset when its empty