ShadowfallStudios / ALS-Community

Replicated and optimized community version of Advanced Locomotion System V4 for Unreal Engine 5.4 with additional features & bug fixes
Other
2.25k stars 586 forks source link

After recover from ragdoll on client the animations are sped up #434

Open kpitikaris opened 1 year ago

kpitikaris commented 1 year ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Start as Listen Server with 2 Players
  2. Go on the Client and press X to enter ragdoll and then press X again to recover
  3. Take a look at Host Player and move the Client
  4. You will see the animations are too fast

Expected behavior The Animations on client are faster

Screenshots and Videos Not neccessary easy to reproduce

kpitikaris commented 1 year ago

Fix: Do this at RagdollEnd function if(!IsNetMode(NM_Client)) { GetMesh()->bOnlyAllowAutonomousTickPose = GetRemoteRole() == ROLE_AutonomousProxy && IsValid(GetNetConnection()) && IsPawnControlled(); }