ScriptName aaaLSSprintScriptfloat fQuestDelayTimeshort vSprintKeyshort sSpeedBoostshort sHAPenaltyshort sIsSprintingshort sFatigueCheckshort vUserBoostshort sBoostBegin GameMode Set fQuestDelayTime to 0.1 Set vSprintKey to aaaLSVariables.sSprintKey Set vUserBoost to aaaLSVariables.sUserBoost If (IsKeyPressed3 vSprintKey) && (IsKeyPressed3 17 || IsKeyPressed3 30 || IsKeyPressed3 32) && (Player.IsSwimming == 0 && Player.IsSneaking == 0) && (Player.GetFatiguePercentage > 0.15) Set sIsSprinting to 1 Set sBoost to 1 If sBoost == 1 Set sSpeedBoost to vUserBoost If sSpeedBoost == 100 || sSpeedBoost == 125 || sSpeedBoost == 150 Player.ModActorValue2 Speed sSpeedBoost Else Player.ModActorValue2 Speed 100 EndIf If Player.GetActorValue Speed >= 254 Player.SetActorValue Speed 254 EndIf PrintC "Key %.0f Speed %.0f", vSprintKey sSpeedBoost Set sHAPenalty to Player.GetBaseAV2 HeavyArmor / 2 Player.ModActorValue2 HeavyArmor sHAPenalty EndIf Player.ModActorValue2 Fatigue -10 If Player.GetBaseAV2 Athletics >= 150 Player.ModActorValue2 Fatigue 5 EndIf Return Else If sSpeedBoost != 0 Set sHAPenalty to Player.GetBaseAV2 HeavyArmor * 2 Player.ModActorValue2 HeavyArmor sHAPenalty Set sHAPenalty to 0 Set sSpeedBoost to 0 Set sBoost to 0 EndIf EndIf End
Would appreciate some insight.
Thanks.