mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Force DEAD strike attack run direction
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user