Attempt to improve SEAD with ARM

This commit is contained in:
Raffson 2025-03-30 21:48:09 +02:00
parent fc1a768e4c
commit 1520c8c3a3
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -18,6 +18,7 @@ from dcs.mapping import Point, Vector2
from game.ato.flightwaypoint import AltitudeReference, FlightWaypoint
from game.ato.flightwaypointtype import FlightWaypointType
from game.data.weapons import WeaponType
from game.theater import (
ControlPoint,
MissionTarget,
@ -558,8 +559,13 @@ class WaypointBuilder:
self.flight.coalition.game.settings.sead_threat_buffer_min_distance
).meters
if target.strike_targets:
factor = (
0.8
if self.flight.any_member_has_weapon_of_type(WeaponType.ARM)
else 1.1
)
threat_range = (
1.1 * max([x.threat_range for x in target.strike_targets]).meters
factor * max([x.threat_range for x in target.strike_targets]).meters
)
hdg = target.position.heading_between_point(ingress)
hold = target.position.point_from_heading(