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...
This commit is contained in:
Raffson 2024-07-21 19:55:42 +02:00
parent e280763a39
commit 9cca4e8244
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -8,7 +8,6 @@ from dcs.task import (
OptECMUsing, OptECMUsing,
OptFormation, OptFormation,
Targets, Targets,
OptROE,
SetUnlimitedFuelCommand, SetUnlimitedFuelCommand,
) )
@ -94,12 +93,6 @@ class JoinPointBuilder(PydcsWaypointBuilder):
max_dist: float = 30.0, max_dist: float = 30.0,
vertical_spacing: float = 2000.0, vertical_spacing: float = 2000.0,
) -> None: ) -> 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 rx = (random.random() + 0.1) * 333
ry = feet(vertical_spacing).meters ry = feet(vertical_spacing).meters
rz = (random.random() + 0.1) * 166 * random.choice([-1, 1]) rz = (random.random() + 0.1) * 166 * random.choice([-1, 1])