mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Tweaking helicopter stuff
This commit is contained in:
@@ -35,7 +35,7 @@ class JoinPointBuilder(PydcsWaypointBuilder):
|
||||
targets = [
|
||||
Targets.All.Air.Helicopters.id,
|
||||
Targets.All.GroundUnits.AirDefence.id,
|
||||
Targets.All.GroundUnits.GroundVehicles.UnarmedVehicles.id,
|
||||
Targets.All.GroundUnits.Infantry.id,
|
||||
Targets.All.GroundUnits.GroundVehicles.ArmoredVehicles.id,
|
||||
Targets.All.Naval.Ships.ArmedShips.LightArmedShips.id,
|
||||
]
|
||||
@@ -84,7 +84,7 @@ class JoinPointBuilder(PydcsWaypointBuilder):
|
||||
max_dist: float = 30.0,
|
||||
vertical_spacing: float = 2000.0,
|
||||
) -> None:
|
||||
waypoint.tasks.append(OptROE(value=OptROE.Values.OpenFireWeaponFree))
|
||||
waypoint.tasks.append(OptROE(value=OptROE.Values.OpenFire))
|
||||
|
||||
rx = (random.random() + 0.1) * 333
|
||||
ry = feet(vertical_spacing).meters
|
||||
|
||||
@@ -79,7 +79,8 @@ class PydcsWaypointBuilder:
|
||||
if (
|
||||
self.flight.client_count > 0
|
||||
and self.flight.unit_type.dcs_unit_type == AJS37
|
||||
) and (self.waypoint.waypoint_type not in TARGET_WAYPOINTS):
|
||||
and self.waypoint.waypoint_type not in TARGET_WAYPOINTS
|
||||
):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
@@ -19,9 +19,10 @@ class SplitPointBuilder(PydcsWaypointBuilder):
|
||||
waypoint.tasks.append(OptFormation.rotary_wedge())
|
||||
else:
|
||||
waypoint.tasks.append(OptFormation.finger_four_close())
|
||||
waypoint.speed_locked = True
|
||||
waypoint.speed = self.flight.coalition.doctrine.rtb_speed.meters_per_second
|
||||
waypoint.ETA_locked = False
|
||||
if not self.flight.is_helo:
|
||||
waypoint.speed_locked = True
|
||||
waypoint.speed = self.flight.coalition.doctrine.rtb_speed.meters_per_second
|
||||
waypoint.ETA_locked = False
|
||||
if self.flight is self.package.primary_flight:
|
||||
script = RunScript(
|
||||
f'trigger.action.setUserFlag("split-{id(self.package)}", true)'
|
||||
|
||||
Reference in New Issue
Block a user