mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Cleanup and reword refuel waypoints - rename Stopover back to CargoStop - precise some waypoint naming Cleanup and refine airlift and airassault waypoints - Drop Off and Pickup now correctly worded - Helo waypoints now represent LandingZones for pickup and dropoff Forbid planes from air assault. Make air assault drop-off non-optional. There is always a drop-off location for troops. Add docs explaining what the assault area is. Add error handling for cargo drop waypoints. Document some airlift waypoint behavior. Remove unnecessary refuel waypoint in airlifts. Remove CTLD logic from Airlift flightplan for AI Add Ingress Point to AirAssault FlightPlan Add simulation halt at AirAssault ingress Remove AirAssault completly from AutoPlanner Remove unneeded LandRefuel from Airlift Clarify cargo waypoints for AirLift and AirAssault
18 lines
643 B
Python
18 lines
643 B
Python
from dcs.point import MovingPoint
|
|
from dcs.task import Land
|
|
|
|
|
|
from .pydcswaypointbuilder import PydcsWaypointBuilder
|
|
|
|
|
|
class LandingZoneBuilder(PydcsWaypointBuilder):
|
|
def build(self) -> MovingPoint:
|
|
waypoint = super().build()
|
|
# Create a landing task, currently only for Helos!
|
|
# Calculate a landing point with a small buffer to prevent AI from landing
|
|
# directly at the static ammo depot and exploding
|
|
landing_point = waypoint.position.random_point_within(15, 5)
|
|
# Use Land Task with 30s duration for helos
|
|
waypoint.add_task(Land(landing_point, duration=30))
|
|
return waypoint
|