Ped rotation sync is broken
Describe the bug
maybe caused by https://github.com/multitheftauto/mtasa-blue/commit/f5b599c9f45777f924f7980cadb2d3cc6431d8b8
Steps to reproduce
spawn ped and check rotation for non-syncing player
Version
client 22596 server 22600
Additional context
No response
Relevant log output
No response
Security Policy
- [X] I have read and understood the Security Policy and this issue is not security related.
I may be an old bug https://github.com/multitheftauto/mtasa-blue/issues/1928#issuecomment-750002744 https://github.com/multitheftauto/mtasa-blue/pull/1506
it started happening after i updated
it started happening after i updated
Since the commit mentioned was introduced in version r22529, have you checked version r22523?
Tested this in r22518 and peds synchronised by another client were walking just fine, in r22529 they would constantly reset their rotation and face north.
Wasn't able to reproduce this bug. Additional information required. Please, attach your resource or/and record a video.
Here is a resource that spawns a ped in SFA. It displays the rotation of the ped and if you are the syncer. When the ped is synchronised by another client and you are in a version beyond r22518 it would constantly reset the rotation. Here is a video of the resource: https://github.com/user-attachments/assets/c42e1f2c-a4fd-4b6b-80cb-6612783f5df2
This also affects the ability of a ped to fire a weapon if they possess one. When we force control fire to true and set the ped's rotation and target on the client side, the ped will shoot, but no bullets will come out of the weapon. This means that damage to a player the ped is shooting at will not be synchronized. Since that update, systems like armed guard peds shooting at players have been broken.
Thanks so much for the clarification and the new information. I'll look into it in the near future.
Could someone submit a revert for https://github.com/multitheftauto/mtasa-blue/commit/f5b599c9f45777f924f7980cadb2d3cc6431d8b8 in the meantime?
I found the source of problems and going to fix it next week.
I've pushed a fix for problems described by @Commendatore1 and @Zangomangu. And it seems that problem described by @C0DELEVEL has also been resolved. But if some of the problems pops up again, please, let me know.
Unbelievable, I have already lost all my nerve cells on this. I started developing my own zombie system, and when testing on one pc and on a laptop I saw this problem, ped was turning north, the one who became the element synchronizer saw everything stable, I even specifically managed the state through setElementSyncer and observed this problem, this was the reason why I finished the development, now I will continue if the tests show that everything is fine.
Unbelievable, I have already lost all my nerve cells on this. I started developing my own zombie system, and when testing on one pc and on a laptop I saw this problem, ped was turning north, the one who became the element synchronizer saw everything stable, I even specifically managed the state through setElementSyncer and observed this problem, this was the reason why I finished the development, now I will continue if the tests show that everything is fine.
I understand your feelings. I just want to note that these problems could be easily overcome by using animations instead of analog controls. I had overlooked that some people use controls instead of animations.
can confirm it's fixed, thx tederis