Dan Albert 4993353184 RTB canceled in-progress flights.
The UI won't stop you from aborting a flight that is already home, but
that should also result in it re-completing again on the next tick.

https://github.com/dcs-liberation/dcs_liberation/issues/1680
2022-03-08 01:04:19 -08:00

15 lines
285 B
Python

from abc import ABC
from dcs import Point
from game.ato.flightstate import FlightState
class AtDeparture(FlightState, ABC):
@property
def cancelable(self) -> bool:
return True
def estimate_position(self) -> Point:
return self.flight.departure.position