См. определение в файле StaminaHandler.c строка 774
775 {
777 {
778 case 2:
779 m_StaminaDelta = -GameConstants.STAMINA_DRAIN_LADDER_FAST_PER_SEC * CfgGameplayHandler.GetSprintLadderStaminaModifier();
780 SetCooldown(GameConstants.STAMINA_REGEN_COOLDOWN_DEPLETION);
781 break;
782
783 case 1:
785 {
787 }
788 break;
789
790 default:
792 {
794 }
795 break;
796 }
797 }
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().