mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-10 22:54:32 +01:00
Made the round start time variable using the config.txt
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
var/log_hrefs = 0 // logs all links clicked in-game. Could be used for debugging and tracking down exploits
|
||||
var/sql_enabled = 0 // for sql switching
|
||||
var/allow_admin_ooccolor = 0 // Allows admins with relevant permissions to have their own ooc colour
|
||||
var/pregame_timestart = 240 // Time it takes for the server to start the game
|
||||
var/allow_vote_restart = 0 // allow votes to restart
|
||||
var/allow_vote_mode = 0 // allow votes to change mode
|
||||
var/vote_delay = 6000 // minimum time between voting sessions (deciseconds, 10 minute default)
|
||||
@@ -333,6 +334,9 @@
|
||||
if("allow_admin_ooccolor")
|
||||
config.allow_admin_ooccolor = 1
|
||||
|
||||
if("pregame_timestart")
|
||||
config.pregame_timestart = text2num(value)
|
||||
|
||||
if("allow_vote_restart")
|
||||
config.allow_vote_restart = 1
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@ var/round_start_time = 0
|
||||
var/list/availablefactions = list() // list of factions with openings
|
||||
|
||||
var/pregame_timeleft = 0
|
||||
|
||||
var/delay_end = 0 //if set to nonzero, the round will not restart on it's own
|
||||
|
||||
var/triai = 0//Global holder for Triumvirate
|
||||
@@ -48,7 +47,7 @@ var/round_start_time = 0
|
||||
'sound/music/Title2.ogg',\
|
||||
'sound/music/Title3.ogg',)
|
||||
do
|
||||
pregame_timeleft = 180
|
||||
pregame_timeleft = config.pregame_timestart
|
||||
to_chat(world, "<B><FONT color='blue'>Welcome to the pre-game lobby!</FONT></B>")
|
||||
to_chat(world, "Please, setup your character and select ready. Game will start in [pregame_timeleft] seconds")
|
||||
while(current_state == GAME_STATE_PREGAME)
|
||||
|
||||
@@ -113,6 +113,9 @@ ALLOW_ADMIN_OOCCOLOR
|
||||
## If metadata is supported
|
||||
ALLOW_METADATA
|
||||
|
||||
## The time it takes for a round to start in seconds
|
||||
PREGAME_TIMESTART 240
|
||||
|
||||
## allow players to initiate a restart vote
|
||||
#ALLOW_VOTE_RESTART
|
||||
|
||||
|
||||
Reference in New Issue
Block a user