mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Add performance option to prevent missile tasks.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2508.
This commit is contained in:
parent
e9a3bd0640
commit
5600257442
@ -137,6 +137,8 @@ BAI/ANTISHIP/DEAD/STRIKE/BARCAP/CAS/OCA/AIR-ASSAULT (main) missions
|
|||||||
|
|
||||||
## Features/Improvements
|
## Features/Improvements
|
||||||
|
|
||||||
|
* **[Factions]** Replaced Patriot STRs "EWRs" with AN/FPS-117 for blue factions 1980 or newer.
|
||||||
|
* **[Mission Generation]** Added option to prevent scud and V2 sites from firing at the start of the mission.
|
||||||
* **[Mission Planning]** Per-flight TOT offsets can now be set in the flight details UI. This allows individual flights to be scheduled ahead of or behind the rest of the package.
|
* **[Mission Planning]** Per-flight TOT offsets can now be set in the flight details UI. This allows individual flights to be scheduled ahead of or behind the rest of the package.
|
||||||
|
|
||||||
## Fixes
|
## Fixes
|
||||||
|
|||||||
@ -297,6 +297,10 @@ class MissileSiteGenerator(GroundObjectGenerator):
|
|||||||
|
|
||||||
def generate(self) -> None:
|
def generate(self) -> None:
|
||||||
super(MissileSiteGenerator, self).generate()
|
super(MissileSiteGenerator, self).generate()
|
||||||
|
|
||||||
|
if not self.game.settings.generate_fire_tasks_for_missile_sites:
|
||||||
|
return
|
||||||
|
|
||||||
# Note : Only the SCUD missiles group can fire (V1 site cannot fire in game right now)
|
# Note : Only the SCUD missiles group can fire (V1 site cannot fire in game right now)
|
||||||
# TODO : Should be pre-planned ?
|
# TODO : Should be pre-planned ?
|
||||||
# TODO : Add delay to task to spread fire task over mission duration ?
|
# TODO : Add delay to task to spread fire task over mission duration ?
|
||||||
|
|||||||
@ -593,6 +593,16 @@ class Settings:
|
|||||||
section=PERFORMANCE_SECTION,
|
section=PERFORMANCE_SECTION,
|
||||||
default=True,
|
default=True,
|
||||||
)
|
)
|
||||||
|
generate_fire_tasks_for_missile_sites: bool = boolean_option(
|
||||||
|
"Generate fire tasks for missile sites",
|
||||||
|
page=MISSION_GENERATOR_PAGE,
|
||||||
|
section=PERFORMANCE_SECTION,
|
||||||
|
detail=(
|
||||||
|
"If enabled, missile sites like V2s and Scuds will fire on random targets "
|
||||||
|
"at the start of the mission."
|
||||||
|
),
|
||||||
|
default=True,
|
||||||
|
)
|
||||||
perf_moving_units: bool = boolean_option(
|
perf_moving_units: bool = boolean_option(
|
||||||
"Moving ground units",
|
"Moving ground units",
|
||||||
page=MISSION_GENERATOR_PAGE,
|
page=MISSION_GENERATOR_PAGE,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user