Closed DBotThePony closed 4 years ago
It's essentially another prediction issue. What you want to do is run SendViewModelMatchingSequence
on both client and server in a predicted manner, then it works properly. It's due to the "interpolation" of the view model cycle (Set/GetCycle), essentially making the cycle get stuck on last frame, because an internal variable does not get reset in mutliplayer.
I have committed a fix for this, but I am not sure it won't cause issues elsewhere. Didn't find any regressions in my testing though.
I could not reproduce any specific sequence index related issues.
Code to reproduce
Animation just stucks after it finishes playing, while it should re-play itself with animations and sound. When i re-play animation manually, it visually doesn't play, but sound still plays. If looped animation has sequence index higher than 6 (found by bruteforce tests), it doesn't require to be even restarted manually, it loops itself with visuals and sound.
If you put
if SERVER then return end
instead ofif CLIENT then return end
, animation would not play at all.