From 9cca4e8244291203c6ba45e3f014d24c38b8b9c8 Mon Sep 17 00:00:00 2001 From: Raffson Date: Sun, 21 Jul 2024 19:55:42 +0200 Subject: [PATCH] Revert helicopter escort aggressiveness hack AI got a little better, at least that's what tests in AFG showed. The main issue is that helicopters tended to attack static objects, which we obviously don't want... --- game/missiongenerator/aircraft/waypoints/joinpoint.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/game/missiongenerator/aircraft/waypoints/joinpoint.py b/game/missiongenerator/aircraft/waypoints/joinpoint.py index 19056df9..034c46be 100644 --- a/game/missiongenerator/aircraft/waypoints/joinpoint.py +++ b/game/missiongenerator/aircraft/waypoints/joinpoint.py @@ -8,7 +8,6 @@ from dcs.task import ( OptECMUsing, OptFormation, Targets, - OptROE, SetUnlimitedFuelCommand, ) @@ -94,12 +93,6 @@ class JoinPointBuilder(PydcsWaypointBuilder): max_dist: float = 30.0, vertical_spacing: float = 2000.0, ) -> None: - 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 rz = (random.random() + 0.1) * 166 * random.choice([-1, 1])