set cooldown timer between each consume of stamina
См. определение в файле StaminaHandler.c строка 854
855 {
857 {
859 return;
860 }
861
863
864 Timer timer;
865 if (
m_TimerMap.Find(modifier, timer) && timer.IsRunning())
866 {
868 }
869 else
870 {
871 timer = new Timer;
873 }
874 timer.Run(time, this, "ResetCooldown", new Param1<int>( modifier ));
875
876 }
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(), DepleteStaminaEx(), StaminaProcessor_Ladder(), StaminaProcessor_Move() и StaminaProcessor_Swimming().