mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-26 06:22:26 +01:00
Voting Overhaul
Transfer vote delay is counted from vote end, so it doesn't conflict with invalid or cancelled votes. Or other votes. TRANSFER_TIMEOUT added as a config option, default value is 2 hours. No transfer votes before 2 hours. Transfer votes before 3 hour mark require 2/3rds majority to pass again. Credit to SoundScopes for the original snippet.
This commit is contained in:
@@ -34,6 +34,7 @@ var/list/gamemode_cache = list()
|
||||
var/vote_autotransfer_initial = 108000 // Length of time before the first autotransfer vote is called
|
||||
var/vote_autotransfer_interval = 36000 // length of time before next sequential autotransfer vote
|
||||
var/vote_autogamemode_timeleft = 100 //Length of time before round start when autogamemode vote is called (in seconds, default 100).
|
||||
var/transfer_timeout = 72000 // timeout before a transfer vote can be called (deciseconds, 120 minute default)
|
||||
var/vote_no_default = 0 // vote does not default to nochange/norestart (tbi)
|
||||
var/vote_no_dead = 0 // dead people can't vote (tbi)
|
||||
// var/enable_authentication = 0 // goon authentication
|
||||
@@ -363,6 +364,9 @@ var/list/gamemode_cache = list()
|
||||
if ("vote_autogamemode_timeleft")
|
||||
config.vote_autogamemode_timeleft = text2num(value)
|
||||
|
||||
if ("transfer_timeout")
|
||||
config.transfer_timeout = text2num(value)
|
||||
|
||||
if("ert_admin_only")
|
||||
config.ert_admin_call_only = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user