diff --git a/code/controllers/configuration/entries/general.dm b/code/controllers/configuration/entries/general.dm index 1b21893807de..db0b2dfa1b16 100644 --- a/code/controllers/configuration/entries/general.dm +++ b/code/controllers/configuration/entries/general.dm @@ -39,6 +39,8 @@ /// station name (the name of the station in-game) /datum/config_entry/string/stationname +/datum/config_entry/flag/delay_if_no_admins // APOC EDIT ADD - (delay if no admins) + /// Countdown between lobby and the round starting. /datum/config_entry/number/lobby_countdown default = 120 diff --git a/code/controllers/subsystem/ticker.dm b/code/controllers/subsystem/ticker.dm index cecf28d39bde..ca7bdbf5a743 100644 --- a/code/controllers/subsystem/ticker.dm +++ b/code/controllers/subsystem/ticker.dm @@ -149,6 +149,16 @@ SUBSYSTEM_DEF(ticker) if(player.client?.holder) ++total_admins_ready + // APOC EDIT ADD START - (delay if no admins) + if(CONFIG_GET(flag/delay_if_no_admins)) + if(timeLeft <= 600 && timeLeft > -1) + if(length(GLOB.admins) <= 0) + SetTimeLeft(-1) + start_immediately = FALSE + to_chat(world, span_infoplain("The game start has been delayed due to no admins connected."), confidential = TRUE) + return + // APOC EDIT ADD END + if(start_immediately) timeLeft = 0 diff --git a/config/apoc_config.txt b/config/apoc_config.txt new file mode 100644 index 000000000000..1d571a8c4787 --- /dev/null +++ b/config/apoc_config.txt @@ -0,0 +1,5 @@ +## NICE images for COOL discord users, seperated by commas i.e. BITE_IMG_LIST http://url/image.gif, http://url/image.png +#BITE_IMG_LIST + +## Delay the round from starting if no admins are connected. +#DELAY_IF_NO_ADMINS diff --git a/config/config.txt b/config/config.txt index 9e037fc0e16c..b245b1408813 100644 --- a/config/config.txt +++ b/config/config.txt @@ -12,6 +12,9 @@ $include map_vote.txt ## DARKPACK EDIT ADD START $include darkpack_config.txt ## DARKPACK EDIT ADD END +## APOC EDIT ADD START +$include apoc_config.txt +## APOC EDIT ADD END # You can use the @ character at the beginning of a config option to lock it from being edited in-game # Example usage: