open.mp icon indicating copy to clipboard operation
open.mp copied to clipboard

wrong landing gear status

Open ChaseOne1 opened this issue 4 months ago • 0 comments
trafficstars

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: Punctured
  • 2: 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:

  1. Fly hydra and put up the landing gear.
  2. Call RepairVehicle or UpdateVehicleDamage and set state of tire
  3. Let hydra land on the ground
  4. 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 Image_1752529173188.png

Image_1752529175855.png

Release version v1.4.0.2779

ChaseOne1 avatar Jul 14 '25 21:07 ChaseOne1