mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fine-tune target waypoints for Strike Eagle
This commit is contained in:
@@ -124,7 +124,8 @@ class PydcsWaypointBuilder:
|
||||
return False
|
||||
|
||||
def register_special_strike_points(
|
||||
self, targets: Iterable[Union[MissionTarget, TheaterUnit]]
|
||||
self, targets: Iterable[Union[MissionTarget, TheaterUnit]],
|
||||
start: int = 1,
|
||||
) -> None:
|
||||
"""Create special strike waypoints for various aircraft"""
|
||||
for i, t in enumerate(targets):
|
||||
@@ -135,7 +136,7 @@ class PydcsWaypointBuilder:
|
||||
# Add F-15E mission target points as mission 1 (for JDAM for instance)
|
||||
if self.group.units[0].unit_type == F_15ESE:
|
||||
self.group.add_nav_target_point(
|
||||
t.position, f"M{(i//8)+1}.{i%8+1}" f"\nH-1" f"\nA0" f"\nV0"
|
||||
t.position, f"M{(i//8)+start}.{i%8+1}\nH-1\nA0\nV0"
|
||||
)
|
||||
|
||||
def register_special_ingress_points(self) -> None:
|
||||
|
||||
@@ -2,7 +2,7 @@ import copy
|
||||
from typing import Union
|
||||
|
||||
from dcs import Point
|
||||
from dcs.planes import B_17G, B_52H, Tu_22M3, B_1B
|
||||
from dcs.planes import B_17G, B_52H, Tu_22M3, B_1B, F_15ESE
|
||||
from dcs.point import MovingPoint
|
||||
from dcs.task import Bombing, Expend, OptFormation, WeaponType, CarpetBombing
|
||||
|
||||
@@ -76,4 +76,6 @@ class StrikeIngressBuilder(PydcsWaypointBuilder):
|
||||
# Register special waypoints
|
||||
if not self._special_wpts_injected:
|
||||
self.register_special_strike_points(self.waypoint.targets)
|
||||
if self.flight.unit_type.dcs_unit_type == F_15ESE:
|
||||
self.register_special_strike_points(self.flight.custom_targets, 2)
|
||||
self._special_wpts_injected = True
|
||||
|
||||
Reference in New Issue
Block a user