mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Allow F11 free camera & spectating if "external views" is allowed
This commit is contained in:
parent
cef25bd2f3
commit
7625725fd8
@ -69,7 +69,11 @@ class MissionGenerator:
|
|||||||
self.generation_started = False
|
self.generation_started = False
|
||||||
|
|
||||||
with open("resources/default_options.lua", "r", encoding="utf-8") as f:
|
with open("resources/default_options.lua", "r", encoding="utf-8") as f:
|
||||||
self.mission.options.load_from_dict(dcs.lua.loads(f.read())["options"])
|
options = dcs.lua.loads(f.read())["options"]
|
||||||
|
ext_view = game.settings.external_views_allowed
|
||||||
|
options["miscellaneous"]["f11_free_camera"] = ext_view
|
||||||
|
options["difficulty"]["spectatorExternalViews"] = ext_view
|
||||||
|
self.mission.options.load_from_dict(options)
|
||||||
|
|
||||||
def generate_miz(self, output: Path) -> UnitMap:
|
def generate_miz(self, output: Path) -> UnitMap:
|
||||||
if self.generation_started:
|
if self.generation_started:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user