mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Make combat landing configurable
This commit is contained in:
@@ -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)'
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user