lag_switch
![code/controllers/subsystem/lag_switch.dm 2](git.png)
Vars | |
auto_measures | List of measures that toggle automatically |
---|---|
auto_switch | If the lag switch measures should attempt to trigger automatically, TRUE if a config value exists |
measures | List of bools corresponding to code/__DEFINES/lag_switch.dm |
slowmode_cooldown | Cooldown between say verb uses when slowmode is enabled |
trigger_pop | Amount of connected clients at which the Lag Switch should engage, set via config or admin panel |
veto_timer_id | Timer ID for the automatic veto period |
Procs | |
cancel_auto_enable_in_progress | Called from an admin chat link |
change_slowmode_cooldown | Update the slowmode timer length and clear existing ones if reduced |
set_all_measures | Helper to loop over all measures for mass changes |
set_measure | Handle the state change for individual measures |
toggle_auto_enable | (En/Dis)able automatic triggering of switches based on client count |
Var Details
auto_measures
![code/controllers/subsystem/lag_switch.dm 13](git.png)
List of measures that toggle automatically
auto_switch
![code/controllers/subsystem/lag_switch.dm 7](git.png)
If the lag switch measures should attempt to trigger automatically, TRUE if a config value exists
measures
![code/controllers/subsystem/lag_switch.dm 11](git.png)
List of bools corresponding to code/__DEFINES/lag_switch.dm
slowmode_cooldown
![code/controllers/subsystem/lag_switch.dm 17](git.png)
Cooldown between say verb uses when slowmode is enabled
trigger_pop
![code/controllers/subsystem/lag_switch.dm 9](git.png)
Amount of connected clients at which the Lag Switch should engage, set via config or admin panel
veto_timer_id
![code/controllers/subsystem/lag_switch.dm 15](git.png)
Timer ID for the automatic veto period
Proc Details
cancel_auto_enable_in_progress
Called from an admin chat link
change_slowmode_cooldown
Update the slowmode timer length and clear existing ones if reduced
set_all_measures
Helper to loop over all measures for mass changes
set_measure
Handle the state change for individual measures
toggle_auto_enable
(En/Dis)able automatic triggering of switches based on client count