Optionally jettison empty fuel tanks for AI

This commit is contained in:
Raffson 2024-02-25 00:57:15 +01:00
parent e36e213b76
commit 9cb7617352
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
3 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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,