mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Improve travel-speeds for helicopters
This commit is contained in:
@@ -94,7 +94,11 @@ class JoinPointBuilder(PydcsWaypointBuilder):
|
||||
max_dist: float = 30.0,
|
||||
vertical_spacing: float = 2000.0,
|
||||
) -> None:
|
||||
waypoint.tasks.append(OptROE(value=OptROE.Values.OpenFire))
|
||||
if self.flight.is_helo:
|
||||
# Make helicopters a bit more aggressive
|
||||
waypoint.tasks.append(OptROE(value=OptROE.Values.OpenFireWeaponFree))
|
||||
else:
|
||||
waypoint.tasks.append(OptROE(value=OptROE.Values.OpenFire))
|
||||
|
||||
rx = (random.random() + 0.1) * 333
|
||||
ry = feet(vertical_spacing).meters
|
||||
|
||||
@@ -7,6 +7,7 @@ from dcs.task import (
|
||||
SwitchWaypoint,
|
||||
)
|
||||
|
||||
from game.utils import knots
|
||||
from .pydcswaypointbuilder import PydcsWaypointBuilder
|
||||
|
||||
|
||||
@@ -29,10 +30,12 @@ class SplitPointBuilder(PydcsWaypointBuilder):
|
||||
waypoint.tasks.append(OptFormation.rotary_wedge())
|
||||
else:
|
||||
waypoint.tasks.append(OptFormation.finger_four_close())
|
||||
if not self.flight.is_helo:
|
||||
waypoint.speed_locked = True
|
||||
waypoint.speed_locked = True
|
||||
waypoint.ETA_locked = False
|
||||
if self.flight.is_helo:
|
||||
waypoint.speed = knots(100).meters_per_second
|
||||
else:
|
||||
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