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:
parent
8a6b7b172c
commit
9b9905c5a3
@ -92,7 +92,7 @@ class AirAssaultFlightPlan(FormationAttackFlightPlan, UiZoneDisplay):
|
||||
|
||||
def ui_zone(self) -> UiZone:
|
||||
return UiZone(
|
||||
[self.layout.target.position],
|
||||
[self.layout.targets[0].position],
|
||||
self.ctld_target_zone_radius,
|
||||
)
|
||||
|
||||
|
||||
@ -45,6 +45,7 @@ class Builder(FormationAttackBuilder[EscortFlightPlan, FormationAttackLayout]):
|
||||
)
|
||||
ingress.only_for_player = True
|
||||
target.only_for_player = True
|
||||
hold = None
|
||||
if not self.primary_flight_is_air_assault:
|
||||
hold = builder.hold(self._hold_point())
|
||||
elif self.package.primary_flight is not None:
|
||||
|
||||
@ -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)'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user