mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
SEAD Sweep threat buffer distance
Added a new option in settings: SEAD Sweep threat buffer distance (nmi).
This commit is contained in:
parent
aafc832e24
commit
aecb171b8f
@ -12,6 +12,7 @@
|
|||||||
* Minimum number of aircraft for autoplanner to plan OCA packages against
|
* Minimum number of aircraft for autoplanner to plan OCA packages against
|
||||||
* Airbase threat range (nmi)
|
* Airbase threat range (nmi)
|
||||||
* TARCAP threat buffer distance (nmi)
|
* TARCAP threat buffer distance (nmi)
|
||||||
|
* SEAD Sweep threat buffer distance (nmi)
|
||||||
* AEW&C threat buffer distance (nmi)
|
* AEW&C threat buffer distance (nmi)
|
||||||
* Theater tanker threat buffer distance (nmi)
|
* Theater tanker threat buffer distance (nmi)
|
||||||
* **[Options]** Improved the option to configure OPFOR autoplanner aggressiveness. The AI might now take even more risks and plan missions against defended targets.
|
* **[Options]** Improved the option to configure OPFOR autoplanner aggressiveness. The AI might now take even more risks and plan missions against defended targets.
|
||||||
|
|||||||
@ -458,7 +458,9 @@ class WaypointBuilder:
|
|||||||
assert self.flight.package.waypoints
|
assert self.flight.package.waypoints
|
||||||
ingress = self.flight.package.waypoints.ingress
|
ingress = self.flight.package.waypoints.ingress
|
||||||
ingress2tgt_dist = ingress.distance_to_point(target.position)
|
ingress2tgt_dist = ingress.distance_to_point(target.position)
|
||||||
threat_range = nautical_miles(5).meters
|
threat_range = nautical_miles(
|
||||||
|
self.flight.coalition.game.settings.sead_sweep_threat_buffer_min_distance
|
||||||
|
).meters
|
||||||
if target.strike_targets:
|
if target.strike_targets:
|
||||||
threat_range = (
|
threat_range = (
|
||||||
1.1 * max([x.threat_range for x in target.strike_targets]).meters
|
1.1 * max([x.threat_range for x in target.strike_targets]).meters
|
||||||
|
|||||||
@ -276,6 +276,17 @@ class Settings:
|
|||||||
max=100,
|
max=100,
|
||||||
detail=("How close to known threats will the TARCAP racetrack extend."),
|
detail=("How close to known threats will the TARCAP racetrack extend."),
|
||||||
)
|
)
|
||||||
|
sead_sweep_threat_buffer_min_distance: int = bounded_int_option(
|
||||||
|
"SEAD Sweep threat buffer distance (nmi)",
|
||||||
|
page=CAMPAIGN_DOCTRINE_PAGE,
|
||||||
|
section=DOCTRINE_DISTANCES_SECTION,
|
||||||
|
default=5,
|
||||||
|
min=0,
|
||||||
|
max=100,
|
||||||
|
detail=(
|
||||||
|
"How close to known threats will the SEAD Sweep engagement zone extend."
|
||||||
|
),
|
||||||
|
)
|
||||||
aewc_threat_buffer_min_distance: int = bounded_int_option(
|
aewc_threat_buffer_min_distance: int = bounded_int_option(
|
||||||
"AEW&C threat buffer distance (nmi)",
|
"AEW&C threat buffer distance (nmi)",
|
||||||
page=CAMPAIGN_DOCTRINE_PAGE,
|
page=CAMPAIGN_DOCTRINE_PAGE,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user