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:
parent
9bd6c6c404
commit
59f98a4c16
@ -30,6 +30,7 @@
|
|||||||
* **[Doctrine]** Ability to customize the startup time allocated to the player
|
* **[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
|
* **[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 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
|
## Fixes
|
||||||
* **[UI/UX]** A-10A flights can be edited again
|
* **[UI/UX]** A-10A flights can be edited again
|
||||||
|
|||||||
@ -12,7 +12,8 @@ class LandingZoneBuilder(PydcsWaypointBuilder):
|
|||||||
# directly at the static ammo depot and exploding
|
# directly at the static ammo depot and exploding
|
||||||
landing_point = waypoint.position.random_point_within(30, 20)
|
landing_point = waypoint.position.random_point_within(30, 20)
|
||||||
# Use Land Task with 30s duration for helos
|
# 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":
|
if waypoint.name == "DROPOFFZONE":
|
||||||
script = RunScript(
|
script = RunScript(
|
||||||
f'trigger.action.setUserFlag("split-{id(self.package)}", true)'
|
f'trigger.action.setUserFlag("split-{id(self.package)}", true)'
|
||||||
|
|||||||
@ -824,6 +824,13 @@ class Settings:
|
|||||||
default=False,
|
default=False,
|
||||||
detail="Keeps the AI silent at all times for flights with human pilots. (except for AWACS flights)",
|
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
|
# Mission specific
|
||||||
desired_player_mission_duration: timedelta = minutes_option(
|
desired_player_mission_duration: timedelta = minutes_option(
|
||||||
"Desired mission duration",
|
"Desired mission duration",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user