mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #8050 from VOREStation/Arokha/furtherghost
Redo respawning
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user