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:
parent
e1e1689d23
commit
218e783bb1
@ -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)
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@ platformdirs==2.5.4
|
||||
pluggy==1.0.0
|
||||
pre-commit==2.20.0
|
||||
pydantic==1.10.2
|
||||
-e git+https://github.com/dcs-retribution/pydcs@25dc257b0b4da1f50ddfa9c6c5863996bc75472b#egg=pydcs
|
||||
-e git+https://github.com/dcs-retribution/pydcs@d325c620bfb714c035931d9a7291c85c0eaf9257#egg=pydcs
|
||||
pyinstaller==5.6.2
|
||||
pyinstaller-hooks-contrib==2022.13
|
||||
pyparsing==3.0.9
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user