Use stored alignment for the F-14A.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1689
This commit is contained in:
Dan Albert 2021-10-30 13:00:36 -07:00
parent 13d52803d6
commit 2699a38f7b
2 changed files with 4 additions and 1 deletions

View File

@ -39,6 +39,7 @@ Saves from 4.x are not compatible with 5.0.
* **[Mission Generation]** AI carrier aircraft with a start time of T+0 will now start at T+1s to avoid traffic jams.
* **[Mission Generation]** Fixed cases of unused aircraft not being spawned at airfields as soon as any airport filled up.
* **[Mission Generation]** Fixed cases with multiple client flights of the same airframe all received the same preset channels.
* **[Mission Generation]** F-14A is now generated with stored alignment.
* **[UI]** Selling of Units is now visible again in the UI dialog and shows the correct amount of sold units
* **[UI]** Fixed bug where an incompatible campaign could be generated if no action is taken on the campaign selection screen.

View File

@ -6,7 +6,7 @@ from typing import Any, Optional, TYPE_CHECKING
from dcs import Mission
from dcs.flyingunit import FlyingUnit
from dcs.planes import F_14B
from dcs.planes import F_14A_135_GR, F_14B
from dcs.unit import Skill
from dcs.unitgroup import FlyingGroup
@ -117,6 +117,8 @@ class FlightGroupConfigurator:
laser_codes.append(None)
if unit.unit_type is F_14B:
unit.set_property(F_14B.Properties.INSAlignmentStored.id, True)
elif unit.unit_type is F_14A_135_GR:
unit.set_property(F_14A_135_GR.Properties.INSAlignmentStored.id, True)
def setup_radios(self) -> RadioFrequency:
if self.flight.flight_type in {FlightType.AEWC, FlightType.REFUELING}: