From 0b8ac8fc4793b9ed1623a7341883348aa7e8148a Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Thu, 5 Nov 2020 14:27:43 -0800 Subject: [PATCH] Move to hold points more slowly. This should give the AI a better chance to climb before reaching the waypoint. --- gen/flights/flightplan.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gen/flights/flightplan.py b/gen/flights/flightplan.py index 8839b1af..e0df2b01 100644 --- a/gen/flights/flightplan.py +++ b/gen/flights/flightplan.py @@ -75,6 +75,14 @@ class FlightPlan: # Flights that start airborne already have some altitude and a good # amount of speed. factor = 0.5 + elif b.waypoint_type == FlightWaypointType.LOITER: + # On the way to the hold point the AI won't climb unless they're in + # formation, so slowing down the flight lead gives them more time to + # form up and climb. + # https://forums.eagle.ru/forum/english/digital-combat-simulator/dcs-world-2-5/dcs-wishlist-aa/7121300-ai-flights-will-not-climb-to-hold-point-because-wingman-not-joined + # + # Plus, it's a loiter point so there's no reason to hurry. + factor = 0.75 # TODO: Adjust if AGL. # We don't have an exact heightmap, but we should probably be performing # *some* adjustment for NTTR since the minimum altitude of the map is