After recover from ragdoll on client the animations are sped up
kpitikaris opened this issue · comments
Kilidev commented
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Start as Listen Server with 2 Players
- Go on the Client and press X to enter ragdoll and then press X again to recover
- Take a look at Host Player and move the Client
- You will see the animations are too fast
Expected behavior
The Animations on client are faster
Screenshots and Videos
Not neccessary easy to reproduce
Kilidev commented
Fix:
Do this at RagdollEnd function
if(!IsNetMode(NM_Client))
{
GetMesh()->bOnlyAllowAutonomousTickPose = GetRemoteRole() == ROLE_AutonomousProxy && IsValid(GetNetConnection()) && IsPawnControlled();
}