ShadowfallStudios / ALS-Community

Replicated and optimized community version of Advanced Locomotion System V4 for Unreal Engine 5.4 with additional features & bug fixes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

After recover from ragdoll on client the animations are sped up

kpitikaris opened this issue · comments

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

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