См. определение в файле StaminaHandler.c строка 740
741 {
743 {
744 case 2:
745 m_StaminaDelta = -GameConstants.STAMINA_DRAIN_LADDER_FAST_PER_SEC * CfgGameplayHandler.GetSprintLadderStaminaModifier();
746 SetCooldown(GameConstants.STAMINA_REGEN_COOLDOWN_DEPLETION);
747 break;
748
749 case 1:
751 {
753 }
754 break;
755
756 default:
758 {
760 }
761 break;
762 }
763 }
int m_iMovement
current stance (DayZPlayerConstants.STANCEIDX_ERECT, ...), only if the command has a stance
float CalcStaminaGainBonus()
Calulates stamina regain bonus coef based on current stamina cap and level and caches it during one U...
void SetCooldown(float time, int modifier=-1)
set cooldown timer between each consume of stamina
Перекрестные ссылки CalcStaminaGainBonus(), CfgGameplayHandler::GetSprintLadderStaminaModifier(), HumanMovementState::m_iMovement, m_IsInCooldown, m_StaminaDelta, SetCooldown(), GameConstants::STAMINA_DRAIN_LADDER_FAST_PER_SEC, GameConstants::STAMINA_GAIN_IDLE_PER_SEC, GameConstants::STAMINA_GAIN_LADDER_PER_SEC и GameConstants::STAMINA_REGEN_COOLDOWN_DEPLETION.
Используется в ProcessMovementState().