Yogstation 13 - Modules - TypesVar Details - Proc Details

Lag Switch

Vars

auto_measuresList of measures that toggle automatically
auto_switchIf the lag switch measures should attempt to trigger automatically, TRUE if a config value exists
measuresList of bools corresponding to code/__DEFINES/lag_switch.dm
slowmode_cooldownCooldown between say verb uses when slowmode is enabled
trigger_popAmount of connected clients at which the Lag Switch should engage, set via config or admin panel
veto_timer_idTimer ID for the automatic veto period

Procs

cancel_auto_enable_in_progressCalled from an admin chat link
change_slowmode_cooldownUpdate the slowmode timer length and clear existing ones if reduced
set_all_measuresHelper to loop over all measures for mass changes
set_measureHandle 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