open.mp
open.mp copied to clipboard
wrong landing gear status
Describe the bug When flying the Hydra with the landing gear retracted, if the server sets the tire states, the landing gear will revert to a deployed state internally. However, visually the landing gear remains retracted, causing the Hydra to appear hovering in midair.
I inspected relevant memory fields and found that vehicle offsets 0x5A5, 0x5A6, 0x5A7, and 0x5A8 store the states of the four tires:
0: Intact (or landing gear deployed)1: Punctured2: Landing gear retracted
When setting tire states server-side, we can only toggle tire conditions bitwise (intact/punctured). This overwrites the 2 (retracted) value in these fields, resulting in the phantom landing gear issue.
After briefly reviewing the UpdateVehicleDamage implementation, I believe this cannot be fixed by server-side modifications alone. It likely requires coordinated client-side changes—such as introducing and parsing a new state variable specifically for landing gear control.
To Reproduce Steps to reproduce the behavior:
- Fly hydra and put up the landing gear.
- Call
RepairVehicleorUpdateVehicleDamageand set state of tire - Let hydra land on the ground
- You'll see hydra hanging in the air even if you don't manually lower the landing gear.
Expected behavior As normal, the landing gear is still up and the hydra is close to the ground.
Screenshots and/or logs
Release version v1.4.0.2779