skyrim-multiplayer / skymp

Multiplayer Mod & TypeScript SDK for Skyrim Special Edition
Other
223 stars 75 forks source link

feat(skymp5-client): enhance combat service with sprint and block animation checks #2229

Closed Pospelove closed 5 days ago

Pospelove commented 5 days ago

[!IMPORTANT] Enhance SweetTaffyPlayerCombatService to handle sprinting and blocking animations based on player's stamina and sprinting state.

  • Behavior:
    • Adds playerLastIsSprintingValue to track player's sprinting state in sweetTaffyPlayerCombatService.ts.
    • Modifies setAttackStaminaRestriction() to prevent SprintStart animation if stamina is below 7.5.
    • Prevents blockStart animation if player is sprinting.
  • Functions:
    • Updates setAttackStaminaRestriction() to include checks for SprintStart and blockStart animations.
    • Adds logic to sendAnimationEvent hooks to modify animation events based on stamina and sprinting state.

This description was created by Ellipsis for 5447b0f30d0e427217a27ab2a88ba2002cb29129. It will automatically update as commits are pushed.