Skip to content

Investigate aircraft falling vertically to their death when their airfield is destroyed #27

Description

@Stubbjax

Aircraft can fall directly onto the ground when arriving at their airfield after it has been destroyed.

FALL.1.mp4

When out of ammo, a plane will enter one of two states depending on whether the airfield exists after executing / completing an order (attack, move, stop, guard, etc.)

If the airfield exists:
The plane will enter JetOrHeliReturnForLandingState. If the plane arrives at a dead airfield during this state, it will silently fall to the ground.

If the airfield does not exist:
The plane will enter JetOrHeliReturningToDeadAirfieldState. Upon arrival, the plane will correctly enter JetOrHeliCirclingDeadAirfieldState, playing its respective VoiceLowFuel audio event and circling the location until its health is depleted.

The issue:
The issue is that the airfield's destruction does not update the plane's state from JetOrHeliReturnForLandingState to JetOrHeliReturningToDeadAirfieldState, and otherwise that there is no behaviour defined for transitioning a plane from JetOrHeliReturnForLandingState to JetOrHeliCirclingDeadAirfieldState when it arrives at a dead airfield.

The below footage demonstrates the difference, where one airfield is sold before the aircraft's return, and the other during the aircraft's return. Because the right airfield does not exist after the aircraft complete their attack, the respective aircraft enter JetOrHeliReturningToDeadAirfieldState. Because the left airfield does exist after the aircraft complete their attack, the respective aircraft enter JetOrHeliReturnForLandingState.

NO_FUEL.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is not working right, typically is user facingExecutableIs game code relatedMinorSeverity: Minor < Major < Critical < Blocker

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions