mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 04:51:32 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user