Lag Switch
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
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
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