mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Added EmptyServerReset variable
This commit is contained in:
parent
0924d1891f
commit
f6f82b71a4
|
|
@ -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;
|
||||
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue