Skip to content

wrong landing gear status #1104

@ChaseOne1

Description

@ChaseOne1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions