Automatic Round-start Access Scaling

- Added a new config option MINIMAL_ACCESS_THRESHOLD that can be used to automatically give players more access during low-pop rounds.
- If the number of players is below this threshold, expanded access will be used and security and assistants will have maintenance access.
- If the number of players exceeds the threshold, minimal access will be used and security and assistants will not have maintenance access.
- Setting the threshold to 0 will disable this function, and server ops can set the state of round-start access manually
This commit is contained in:
Ikarrus
2015-01-20 23:16:51 -07:00
parent 793243763d
commit f4e021fc82
4 changed files with 61 additions and 3 deletions
+5 -2
View File
@@ -47,8 +47,9 @@
var/kick_inactive = 0 //force disconnect for inactive players
var/load_jobs_from_txt = 0
var/automute_on = 0 //enables automuting/spam prevention
var/jobs_have_minimal_access = 0 //determines whether jobs use minimal access or expanded access.
var/jobs_have_maint_access = 0 //Who gets maint access? See defines above
var/minimal_access_threshold = 0 //If the number of players is larger than this threshold, minimal access will be turned on and jobs_have_maint_access will be set to 3
var/jobs_have_minimal_access = 0 //determines whether jobs use minimal access or expanded access. Only used if minimal_access_threshold is 0.
var/jobs_have_maint_access = 0 //Who gets maint access? See defines above. Only used if minimal_access_threshold is 0.
var/sec_start_brig = 0 //makes sec start in brig or dept sec posts
var/server
@@ -395,6 +396,8 @@
config.allow_latejoin_antagonists = 1
if("allow_random_events")
config.allow_random_events = 1
if("minimal_access_threshold")
config.minimal_access_threshold = text2num(value)
if("jobs_have_minimal_access")
config.jobs_have_minimal_access = 1
if("humans_need_surnames")