mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 07:28:53 +01:00
Makes pregame time a config setting
Boo hardcoded values
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user