mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Use EngageTargetsInZone for SEAD Sweep instead
Seems to perform better, AI wonders less off to places it shouldn't...
This commit is contained in:
parent
2b65d2f800
commit
a658e41c54
@ -2,8 +2,8 @@ from dcs.point import MovingPoint
|
||||
from dcs.task import (
|
||||
OptECMUsing,
|
||||
ControlledTask,
|
||||
EngageTargets,
|
||||
Targets,
|
||||
EngageTargetsInZone,
|
||||
)
|
||||
|
||||
from game.utils import nautical_miles
|
||||
@ -19,9 +19,9 @@ class SeadSweepIngressBuilder(PydcsWaypointBuilder):
|
||||
|
||||
waypoint.add_task(
|
||||
ControlledTask(
|
||||
EngageTargets(
|
||||
# TODO: From doctrine.
|
||||
max_distance=int(
|
||||
EngageTargetsInZone(
|
||||
position=self.flight.flight_plan.tot_waypoint.position,
|
||||
radius=int(
|
||||
nautical_miles(
|
||||
self.flight.coalition.game.settings.sead_sweep_engagement_range_distance
|
||||
).meters
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user