SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
84 stars 18 forks source link

Wheels on cars don't turn for other players while the car is standing still #4574

Open TheMew0 opened 2 weeks ago

TheMew0 commented 2 weeks ago

https://github.com/SmartlyDressedGames/Unturned-3.x-Community/assets/110701629/2e3a58c4-ecf0-4050-bc9c-7efcdd89c301

Here you can see the driver's perspective (on the left) and my perspective (on the right), he turns the steering wheel but the wheels don't turn for other players, they only start turning when the car starts moving.

SDGNelson commented 2 weeks ago

Thanks for this report as well. The reason is that the server only replicates the vehicle's most recent state when the position or rotation changes, but I'll include the steering angle in that check for the next update.

SDGNelson commented 2 weeks ago

Turns out there was a reason for this: When no updates have been received from the server remote clients reset the steering to forward. I think it would probably be fine to get rid of that as long as the steering is then reset when the vehicle is empty.