Merge pull request #8050 from VOREStation/Arokha/furtherghost

Redo respawning
This commit is contained in:
Aronai Sieyes
2020-05-25 11:37:51 -04:00
committed by GitHub
9 changed files with 121 additions and 56 deletions

View File

@@ -68,7 +68,11 @@ var/list/gamemode_cache = list()
var/static/allow_ai_shells = FALSE // allow AIs to enter and leave special borg shells at will, and for those shells to be buildable.
var/static/give_free_ai_shell = FALSE // allows a specific spawner object to instantiate a premade AI Shell
var/static/hostedby = null
var/static/respawn = 1
var/static/respawn_time = 3000 // time before a dead player is allowed to respawn (in ds, though the config file asks for minutes, and it's converted below)
var/static/respawn_message = "<span class='notice'><B>Make sure to play a different character, and please roleplay correctly!</B></span>"
var/static/guest_jobban = 1
var/static/usewhitelist = 0
var/static/kick_inactive = 0 //force disconnect for inactive players after this many minutes, if non-0
@@ -482,6 +486,13 @@ var/list/gamemode_cache = list()
if ("norespawn")
config.respawn = 0
if ("respawn_time")
var/raw_minutes = text2num(value)
config.respawn_time = raw_minutes MINUTES
if ("respawn_message")
config.respawn_message = value
if ("servername")
config.server_name = value