Attempt to reset the simulation on abort.

This is optional because I really don't know if I trust it. I don't see
much wrong with it (aside from the warning about not using it with auto-
resolve, because it won't restore lost aircraft), but it's really not
something I'd built for since it's not going to be possible as the RTS
features grow.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2735.
This commit is contained in:
Dan Albert
2023-05-19 00:56:55 -07:00
parent 527eac1f4a
commit 4b4c45e90f
7 changed files with 44 additions and 5 deletions

View File

@@ -324,6 +324,19 @@ class Settings:
"modifications."
),
)
reset_simulation_on_abort: bool = boolean_option(
"Reset mission to pre-take off conditions on abort (experimental)",
page=MISSION_GENERATOR_PAGE,
section=GAMEPLAY_SECTION,
default=False,
detail=(
"If enabled, the fast-forward effects will be rewound when aborting take "
"off. <strong>DO NOT USE THIS WITH AUTO-RESOLVE ENABLED.</strong> Lost "
"aircraft will not be recovered. This option is experimental and may not "
"work. It is always safer to reload your save after abort when using fast-"
"forward."
),
)
player_mission_interrupts_sim_at: Optional[StartType] = choices_option(
"Player missions interrupt fast forward",
page=MISSION_GENERATOR_PAGE,