multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.38k stars 425 forks source link

Vehicle wheel component visible & physics #2624

Open XaskeL opened 2 years ago

XaskeL commented 2 years ago

Describe the bug

https://www.youtube.com/watch?v=0X59ooJb6uk

  1. What could this be related to? The same thing happens on pure freeroam and play, only it does not affect the physics, but the character that was extracted from the car as if stuck to it for a while.

Also can be thrown in the center of the map. I tried to disable all the resources that are at all, left only the admin with the created vehicle

  1. Also encountered recently that hiding wheel component by dummy wheel name does not work correctly and it depends on server version (on 20954 all is fine, on 21118 and newer, the problem persists). Wheels used to appear only when someone gets in the car or you get in or out of it. Now if someone is in it, the wheels start to flicker permanently (because before there was a timer with a fix for the problem described above). If the client is in the car, then from his face with the wheels nothing happens. Now I have to hide wheels in onClientPreRender (It doesn't work anymore.)

https://www.youtube.com/watch?v=mZKG2CDDwHM

Specifically teleportation I have not yet tested using another server build or tracing code for that. But the problem with restoring component visibility in nightly which was installed to get rid of the security bug led to an unexpected result with this bug.

Steps to reproduce

  1. Create a car
  2. Hide the wheel components (client)
  3. Get in the car, get out of the car
  4. Make someone else get in it
  5. Watch
  6. For more interesting result you can hide wheels in onClientPreRender or on timer
  7. Sit in the car and everything becomes normal

Version

Server: 21118 Server: 21238

The version of the client has no effect on this.

Additional context

No response

Relevant log output

No response

Security Policy

brzys commented 2 years ago
setVehicleComponentVisible(vehicle, wheel, false)
setVehicleWheelScale(vehicle, 0.00001)

With following code in onClientPreRender no issues for me and other players on server 21238