mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
The Start Now sets the round to start immediately
Previously, if you pressed Start Now while the server was still initialising, it would complain, and you'd have to wait until the lobby was ready. Now pressing it will have the server start as soon as able. Uses: debugging qol.
This commit is contained in:
@@ -513,15 +513,17 @@ var/global/BSACooldown = 0
|
||||
set category = "Server"
|
||||
set desc="Start the round RIGHT NOW"
|
||||
set name="Start Now"
|
||||
if(ticker.current_state == GAME_STATE_PREGAME)
|
||||
ticker.can_fire = 1
|
||||
ticker.timeLeft = 0
|
||||
if(ticker.current_state == GAME_STATE_PREGAME || ticker.current_state == GAME_STATE_STARTUP)
|
||||
ticker.start_immediately = TRUE
|
||||
log_admin("[usr.key] has started the game.")
|
||||
message_admins("<font color='blue'>[usr.key] has started the game.</font>")
|
||||
var/msg = ""
|
||||
if(ticker.current_state == GAME_STATE_STARTUP)
|
||||
msg = " (The server is still setting up, but the round will be \
|
||||
started as soon as possible.)"
|
||||
message_admins("<font color='blue'>\
|
||||
[usr.key] has started the game.[msg]</font>")
|
||||
feedback_add_details("admin_verb","SN") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
|
||||
return 1
|
||||
else if (ticker.current_state == GAME_STATE_STARTUP)
|
||||
usr << "<font color='red'>Error: Start Now: Game is in startup, please wait until it has finished.</font>"
|
||||
else
|
||||
usr << "<font color='red'>Error: Start Now: Game has already started.</font>"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user