byond - Modules - TypesDefine Details

code/__DEFINES/cooldowns.dm

COOLDOWN_BORG_SELF_REPAIRCOOLDOWN SYSTEMS
TIMER_COOLDOWN_RUNNINGReturns TRUE if still cooling down, FALSE otherwise
TIMER_COOLDOWN_FINISHEDChecks if a timer based cooldown is finished.
S_TIMER_COOLDOWN_STARTStoppable timer cooldowns. Use indexes the same as the regular tiemr cooldowns. They make use of the TIMER_COOLDOWN_RUNNING() and TIMER_COOLDOWN_END() macros the same, just not the TIMER_COOLDOWN_START() one. A bit more expensive than the regular timers, but can be reset before they end and the time left can be checked.
COOLDOWN_DECLARECooldown system based on storing world.time on a variable, plus the cooldown time. Better performance over timer cooldowns, lower control. Same functionality.
COOLDOWN_INCREMENTadds to existing cooldown timer if its started, otherwise starts anew

Define Details

COOLDOWN_BORG_SELF_REPAIR

COOLDOWN SYSTEMS

COOLDOWN_DECLARE

Cooldown system based on storing world.time on a variable, plus the cooldown time. Better performance over timer cooldowns, lower control. Same functionality.

COOLDOWN_INCREMENT

adds to existing cooldown timer if its started, otherwise starts anew

S_TIMER_COOLDOWN_START

Stoppable timer cooldowns. Use indexes the same as the regular tiemr cooldowns. They make use of the TIMER_COOLDOWN_RUNNING() and TIMER_COOLDOWN_END() macros the same, just not the TIMER_COOLDOWN_START() one. A bit more expensive than the regular timers, but can be reset before they end and the time left can be checked.

TIMER_COOLDOWN_FINISHED

Checks if a timer based cooldown is finished.

TIMER_COOLDOWN_RUNNING

Returns TRUE if still cooling down, FALSE otherwise