Set ECM as first task for SEAD ingress

This commit is contained in:
Raffson 2023-04-14 21:23:03 +02:00
parent 96cb39c334
commit 6517dc0de8
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -26,6 +26,9 @@ class SeadIngressBuilder(PydcsWaypointBuilder):
)
return
# Preemptively use ECM to better avoid getting swatted.
ecm_option = OptECMUsing(value=OptECMUsing.Values.UseIfDetectedLockByRadar)
waypoint.tasks.append(ecm_option)
for group in target.groups:
miz_group = self.mission.find_group(group.group_name)
if miz_group is None:
@ -56,6 +59,3 @@ class SeadIngressBuilder(PydcsWaypointBuilder):
engage_task.params["expend"] = Expend.All.value
waypoint.tasks.append(engage_task)
# Preemptively use ECM to better avoid getting swatted.
ecm_option = OptECMUsing(value=OptECMUsing.Values.UseIfDetectedLockByRadar)
waypoint.tasks.append(ecm_option)