Force DEAD strike attack run direction

This commit is contained in:
Raffson
2023-03-10 23:50:45 +01:00
parent e1e1689d23
commit 218e783bb1
2 changed files with 5 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import logging
import math
from dcs.point import MovingPoint
from dcs.task import AttackGroup, OptECMUsing, WeaponType, Expend
@@ -30,10 +31,13 @@ class DeadIngressBuilder(PydcsWaypointBuilder):
task = AttackGroup(miz_group.id, weapon_type=WeaponType.Guided)
waypoint.tasks.append(task)
dir = target.position.heading_between_point(waypoint.position)
task = AttackGroup(
miz_group.id,
weapon_type=WeaponType.Unguided,
expend=Expend.All,
direction=math.radians(dir),
)
waypoint.tasks.append(task)