mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Improve SEAD ingress tasking and target waypoint
* Fix suicide SEAD flights (diving to the SAM) additional fix for #2152. This sets the Target Waypoint ALT to the Ingress ALT for non player flights. Player flights will have the target waypoint set to 0 AGL so that they can slave weapons or TGP to it. * Add GroupAttack to SEAD so that they suppress more
This commit is contained in:
@@ -50,6 +50,10 @@ class PydcsWaypointBuilder:
|
||||
# It seems we need to leave waypoint.type exactly as it is even
|
||||
# though it's set to "Turning Point". If I set this to "Fly Over
|
||||
# Point" and then save the mission in the ME DCS resets it.
|
||||
if self.flight.client_count > 0:
|
||||
# Set Altitute to 0 AGL for player flights so that they can slave target pods or weapons to the waypoint
|
||||
waypoint.alt = 0
|
||||
waypoint.alt_type = "RADIO"
|
||||
|
||||
waypoint.alt_type = self.waypoint.alt_type
|
||||
tot = self.flight.flight_plan.tot_for_waypoint(self.waypoint)
|
||||
|
||||
@@ -42,7 +42,7 @@ class SeadIngressBuilder(PydcsWaypointBuilder):
|
||||
# into the SAM instead of waiting for it to come alive
|
||||
engage_task = EngageGroup(miz_group.id)
|
||||
engage_task.params["weaponType"] = DcsWeaponType.Guided.value
|
||||
# Ensure that they fire all ammunition in one attack pass
|
||||
engage_task.params["groupAttack"] = True
|
||||
engage_task.params["expend"] = Expend.All.value
|
||||
waypoint.tasks.append(engage_task)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user