Make combat landing configurable

This commit is contained in:
Raffson 2024-10-05 23:04:06 +02:00
parent 9bd6c6c404
commit 59f98a4c16
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99
3 changed files with 10 additions and 1 deletions

View File

@ -30,6 +30,7 @@
* **[Doctrine]** Ability to customize the startup time allocated to the player
* **[Mission Generation]** Ability to choose whether player flights can spawn on the sixpack or not
* **[Options]** New options in Mission Generator section: Limit AI radio callouts & Suppress AI radio callouts.
* **[Options]** New option to use the combat landing flag in the landing waypoint task for helicopters.
## Fixes
* **[UI/UX]** A-10A flights can be edited again

View File

@ -12,7 +12,8 @@ class LandingZoneBuilder(PydcsWaypointBuilder):
# directly at the static ammo depot and exploding
landing_point = waypoint.position.random_point_within(30, 20)
# Use Land Task with 30s duration for helos
waypoint.add_task(Land(landing_point, duration=30))
combat_land = self.flight.coalition.game.settings.use_ai_combat_landing
waypoint.add_task(Land(landing_point, duration=30, combat_landing=combat_land))
if waypoint.name == "DROPOFFZONE":
script = RunScript(
f'trigger.action.setUserFlag("split-{id(self.package)}", true)'

View File

@ -824,6 +824,13 @@ class Settings:
default=False,
detail="Keeps the AI silent at all times for flights with human pilots. (except for AWACS flights)",
)
use_ai_combat_landing: bool = boolean_option(
"Use AI combat landing waypoint task",
page=MISSION_GENERATOR_PAGE,
section=GAMEPLAY_SECTION,
default=False,
detail="Turns the combat landing flag on in the landing waypoint task.",
)
# Mission specific
desired_player_mission_duration: timedelta = minutes_option(
"Desired mission duration",