Additional respawn refactoring.

Removes a non-utilized config setting.
Adds a config setting to set the respawn timer, defaults to 30 minutes as today.
Makes the MayRespawn() proc utilize this config setting. Makes more uses of MayRespawn() check the respawn delay.
This commit is contained in:
PsiOmegaDelta
2015-11-08 20:05:37 +01:00
parent 4ab55646a6
commit 6f559779b5
7 changed files with 24 additions and 58 deletions
+3 -3
View File
@@ -59,7 +59,7 @@ var/list/gamemode_cache = list()
var/allow_random_events = 0 // enables random events mid-round when set to 1
var/allow_ai = 1 // allow ai job
var/hostedby = null
var/respawn = 1
var/respawn_delay = 30
var/guest_jobban = 1
var/usewhitelist = 0
var/kick_inactive = 0 //force disconnect for inactive players after this many minutes, if non-0
@@ -379,8 +379,8 @@ var/list/gamemode_cache = list()
// if ("authentication")
// config.enable_authentication = 1
if ("norespawn")
config.respawn = 0
if ("respawn_delay")
config.respawn_delay = text2num(value)
if ("servername")
config.server_name = value