Makes pregame time a config setting

Boo hardcoded values
This commit is contained in:
Aronai Sieyes
2020-03-08 01:05:28 -04:00
parent 632d3a8dc5
commit 72f239b2ac
3 changed files with 9 additions and 1 deletions
+4
View File
@@ -31,6 +31,7 @@ var/list/gamemode_cache = list()
var/allow_admin_jump = 1 // allows admin jumping
var/allow_admin_spawning = 1 // allows admin item spawning
var/allow_admin_rev = 1 // allows admin revives
var/pregame_time = 180 // pregame time in seconds
var/vote_delay = 6000 // minimum time between voting sessions (deciseconds, 10 minute default)
var/vote_period = 600 // length of voting period (deciseconds, default 1 minute)
var/vote_autotransfer_initial = 108000 // Length of time before the first autotransfer vote is called
@@ -420,6 +421,9 @@ var/list/gamemode_cache = list()
if ("default_no_vote")
config.vote_no_default = 1
if ("pregame_time")
config.pregame_time = text2num(value)
if ("vote_delay")
config.vote_delay = text2num(value)
+2 -1
View File
@@ -48,8 +48,9 @@ var/global/datum/controller/gameticker/ticker
send2mainirc("Server lobby is loaded and open at byond://[config.serverurl ? config.serverurl : (config.server ? config.server : "[world.address]:[world.port]")]")
pregame_timeleft = config.pregame_time
do
pregame_timeleft = 180
to_chat(world, "<B><FONT color='blue'>Welcome to the pregame lobby!</FONT></B>")
to_chat(world, "Please set up your character and select ready. The round will start in [pregame_timeleft] seconds.")
while(current_state == GAME_STATE_PREGAME)
+3
View File
@@ -163,6 +163,9 @@ ALLOW_VOTE_RESTART
## allow players to initate a mode-change start
ALLOW_VOTE_MODE
## time in pregame lobby in seconds
PREGAME_TIME 180
## min delay (deciseconds) between voting sessions (default 10 minutes)
VOTE_DELAY 6000