From 0050084b939836607796ffffdcec44f2b1b339b5 Mon Sep 17 00:00:00 2001 From: FalloutFalcon Date: Wed, 29 Jul 2026 17:08:11 -0500 Subject: [PATCH 1/2] delay if no admins on --- code/controllers/configuration/entries/general.dm | 2 ++ code/controllers/subsystem/ticker.dm | 10 ++++++++++ config/darkpack_config.txt | 3 +++ 3 files changed, 15 insertions(+) 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/darkpack_config.txt b/config/darkpack_config.txt index ff43a079134d..0b550a470818 100644 --- a/config/darkpack_config.txt +++ b/config/darkpack_config.txt @@ -74,3 +74,6 @@ SWING_COMBAT ## Configs for passive bloodpool drain, if this is enabled, then the below timer can be adjusted to make vampires and ghouls lose 1 blood point when the timer is up #PASSIVE_BP_DRAIN PASSIVE_BP_DRAIN_TIMER 12000 + +## Delay the round from starting if no admins are connected. +#DELAY_IF_NO_ADMINS From 14b99ee4963724db4f5482110ecfc83a68c95319 Mon Sep 17 00:00:00 2001 From: FalloutFalcon Date: Wed, 29 Jul 2026 18:00:07 -0500 Subject: [PATCH 2/2] yea --- config/apoc_config.txt | 5 +++++ config/config.txt | 3 +++ config/darkpack_config.txt | 3 --- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 config/apoc_config.txt 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: diff --git a/config/darkpack_config.txt b/config/darkpack_config.txt index fe6c8f097603..83b5ea25d2df 100644 --- a/config/darkpack_config.txt +++ b/config/darkpack_config.txt @@ -80,6 +80,3 @@ PASSIVE_BP_DRAIN_TIMER 12000 DISCIPLINE_KEYBINDS ## Gives every single power a keybind, will majorly clutter the keybinds menu if uncommented in exchange for being very convenient for players #INDIVIDUAL_POWER_KEYBINDS - -## Delay the round from starting if no admins are connected. -#DELAY_IF_NO_ADMINS