mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-13 15:14:34 +00:00
Added EmptyServerReset variable
This commit is contained in:
parent
0924d1891f
commit
f6f82b71a4
3 changed files with 8 additions and 3 deletions
|
|
@ -1305,3 +1305,4 @@ $Host::EnableTeamBalanceNotify = 1;
|
||||||
$Host::EnableTurretPlayerCount = 10;
|
$Host::EnableTurretPlayerCount = 10;
|
||||||
$Host::AntiCloakEnable = 1;
|
$Host::AntiCloakEnable = 1;
|
||||||
$Host::AntiCloakPlayerCount = 6;
|
$Host::AntiCloakPlayerCount = 6;
|
||||||
|
$Host::EmptyServerReset = 0;
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
//This function is Called at:
|
//This function is Called at:
|
||||||
//CreateServer(%mission, %missionType) in Server.cs
|
//CreateServer(%mission, %missionType) in Server.cs
|
||||||
|
//
|
||||||
|
//To control whether the server auto resets when empty
|
||||||
|
//$Host::EmptyServerReset = 0;
|
||||||
|
|
||||||
package StartTeamCounts {
|
package StartTeamCounts {
|
||||||
|
|
||||||
|
|
@ -12,7 +15,7 @@ function CreateServer(%mission, %missionType)
|
||||||
//Make sure our activation variable is set
|
//Make sure our activation variable is set
|
||||||
ResetClientChangedTeams();
|
ResetClientChangedTeams();
|
||||||
//Keeps server Auto Reset off
|
//Keeps server Auto Reset off
|
||||||
$Host::Dedicated = 0;
|
$Host::Dedicated = $Host::EmptyServerReset;
|
||||||
//Call for a GetTeamCount update
|
//Call for a GetTeamCount update
|
||||||
GetTeamCounts( %game, %client, %respawn );
|
GetTeamCounts( %game, %client, %respawn );
|
||||||
|
|
||||||
|
|
@ -62,7 +65,7 @@ function GetTeamCounts( %game, %client, %respawn )
|
||||||
|
|
||||||
|
|
||||||
//Start Base Rape Notify
|
//Start Base Rape Notify
|
||||||
PlayerNotify::AtSpawn( %game, %client, %respawn );
|
NBRStatusNotify( %game, %client, %respawn );
|
||||||
|
|
||||||
//Call Team Balance Notify
|
//Call Team Balance Notify
|
||||||
TeamBalanceNotify::AtSpawn( %game, %client, %respawn );
|
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::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::PUGautoPasswordLimit = 10; //How many to enable a pug password
|
||||||
$Host::PUGPassword = "pickup"; //pug password
|
$Host::PUGPassword = "pickup"; //pug password
|
||||||
|
$Host::EmptyServerReset = 1; //Whether or not you want the server to reset when its empty
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue