set cooldown timer between each consume of stamina
См. определение в файле StaminaHandler.c строка 853
854 {
856 {
858 return;
859 }
860
862
863 Timer timer;
864 if (
m_TimerMap.Find(modifier, timer) && timer.IsRunning())
865 {
867 }
868 else
869 {
870 timer = new Timer;
872 }
873 timer.Run(time, this, "ResetCooldown", new Param1<int>( modifier ));
874
875 }
ref map< int, ref Timer > m_TimerMap
bool m_StaminaDepleted
DEPRECATED.
void ResetCooldown(int modifier=-1)
Перекрестные ссылки m_IsInCooldown, m_Stamina, m_StaminaDepleted, m_TimerMap, ResetCooldown() и Timer::Stop().
Используется в CheckStaminaState(), DepleteStamina(), StaminaProcessor_Ladder(), StaminaProcessor_Move() и StaminaProcessor_Swimming().