mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Attempt to improve SEAD with ARM
This commit is contained in:
parent
fc1a768e4c
commit
1520c8c3a3
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user