F_14B client slots are now by default using pre-alignement.

This commit is contained in:
Khopa 2019-10-14 18:53:43 +02:00
parent 0519438292
commit d8d17e5c18

View File

@ -86,6 +86,7 @@ class AircraftConflictGenerator:
def _setup_group(self, group: FlyingGroup, for_task: typing.Type[Task], client_count: int):
did_load_loadout = False
unit_type = group.units[0].unit_type
if unit_type in db.PLANE_PAYLOAD_OVERRIDES:
override_loadout = db.PLANE_PAYLOAD_OVERRIDES[unit_type]
if type(override_loadout) == dict:
@ -117,6 +118,10 @@ class AircraftConflictGenerator:
else:
group.units[idx].set_client()
# Set up F-14 Client to have pre-stored alignement
if unit_type is F_14B:
group.units[idx].set_property(F_14B.Properties.INSAlignmentStored.id, True)
group.points[0].tasks.append(OptReactOnThreat(OptReactOnThreat.Values.EvadeFire))
if unit_type in helicopters.helicopter_map.values():