Added a configuration option that allows putting the .rsc on external servers.

This commit is contained in:
cib
2013-06-11 21:28:59 +02:00
parent 8108dd6416
commit 4e0c68b88a
4 changed files with 15 additions and 1 deletions
+2
View File
@@ -39,3 +39,5 @@
var/player_age = "Requires database" //So admins know why it isn't working - Used to determine how old the account is - in days.
var/related_accounts_ip = "Requires database" //So admins know why it isn't working - Used to determine what other accounts previously logged in from this ip
var/related_accounts_cid = "Requires database" //So admins know why it isn't working - Used to determine what other accounts previously logged in from this computer id
preload_rsc = 0 // This is 0 so we can set it to an URL once the player logs in and have them download the resources from a different server.
+5 -1
View File
@@ -103,6 +103,10 @@
del(src)
return
// Change the way they should download resources.
if(config.resource_urls) src.preload_rsc = pick(config.resource_urls)
else src.preload_rsc = 1 // If config.resource_urls is not set, preload like normal.
clients += src
directory[ckey] = src
@@ -278,4 +282,4 @@
'icons/xenoarch_icons/chart2.jpg',
'icons/xenoarch_icons/chart3.jpg',
'icons/xenoarch_icons/chart4.jpg'
)
)