mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Optionally jettison empty fuel tanks for AI
This commit is contained in:
parent
e36e213b76
commit
9cb7617352
@ -40,6 +40,7 @@
|
||||
* **[Options]** Option to de-spawn AI flights in the air if their start-type was manually set to In-Flight
|
||||
* **[Config]** Preference setting to use custom Liberation payloads instead of prioritizing Retribution's default
|
||||
* **[Config]** Preference setting to configure the server-port on which Retribution's back-end will run
|
||||
* **[Options]** Made AI jettisoning empty fuel tanks optional (disabled by default)
|
||||
|
||||
## Fixes
|
||||
* **[Mission Generation]** Anti-ship strikes should use "group attack" in their attack-task
|
||||
|
||||
@ -124,7 +124,8 @@ class AircraftBehavior:
|
||||
unit.gun = 0
|
||||
|
||||
group.points[0].tasks.append(OptRTBOnBingoFuel(rtb_on_bingo))
|
||||
group.points[0].tasks.append(OptJettisonEmptyTanks())
|
||||
if flight.coalition.game.settings.ai_jettison_empty_tanks:
|
||||
group.points[0].tasks.append(OptJettisonEmptyTanks())
|
||||
# Do not restrict afterburner.
|
||||
# https://forums.eagle.ru/forum/english/digital-combat-simulator/dcs-world-2-5/bugs-and-problems-ai/ai-ad/7121294-ai-stuck-at-high-aoa-after-making-sharp-turn-if-afterburner-is-restricted
|
||||
|
||||
|
||||
@ -683,6 +683,15 @@ class Settings:
|
||||
"without having to change the payload. <u>Takes effect after current turn!</u>"
|
||||
),
|
||||
)
|
||||
ai_jettison_empty_tanks: bool = boolean_option(
|
||||
"Enable AI empty fuel tank jettison",
|
||||
MISSION_GENERATOR_PAGE,
|
||||
GAMEPLAY_SECTION,
|
||||
default=False,
|
||||
detail=(
|
||||
"AI will jettison their fuel tanks as soon as they're empty."
|
||||
),
|
||||
)
|
||||
default_start_type: StartType = choices_option(
|
||||
"Default start type for AI aircraft",
|
||||
page=MISSION_GENERATOR_PAGE,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user