mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Set ECM option as first task for DEAD-ingress
This commit is contained in:
parent
1582b3ee43
commit
845888bc75
@ -20,6 +20,10 @@ class DeadIngressBuilder(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:
|
||||
@ -46,7 +50,3 @@ class DeadIngressBuilder(PydcsWaypointBuilder):
|
||||
)
|
||||
task.params["altitudeEnabled"] = False
|
||||
waypoint.tasks.append(task)
|
||||
|
||||
# Preemptively use ECM to better avoid getting swatted.
|
||||
ecm_option = OptECMUsing(value=OptECMUsing.Values.UseIfDetectedLockByRadar)
|
||||
waypoint.tasks.append(ecm_option)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user