Lock speed during strike ingress

This commit is contained in:
Raffson 2022-11-12 22:08:02 +01:00
parent 322a6a700a
commit 3f79fa5b9d
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -4,6 +4,7 @@ from dcs.planes import B_17G, B_52H, Tu_22M3
from dcs.point import MovingPoint from dcs.point import MovingPoint
from dcs.task import Bombing, OptFormation, WeaponType, Expend from dcs.task import Bombing, OptFormation, WeaponType, Expend
from game.utils import mach, Distance
from .pydcswaypointbuilder import PydcsWaypointBuilder from .pydcswaypointbuilder import PydcsWaypointBuilder
@ -40,5 +41,7 @@ class StrikeIngressBuilder(PydcsWaypointBuilder):
bombing.params["expend"] = Expend.All.value bombing.params["expend"] = Expend.All.value
waypoint.tasks.append(bombing) waypoint.tasks.append(bombing)
waypoint.speed = mach(0.85, Distance.from_feet(20000)).meters_per_second
# Register special waypoints # Register special waypoints
self.register_special_waypoints(self.waypoint.targets) self.register_special_waypoints(self.waypoint.targets)