Add unrestricted SATNAV support to factions.

Enabled for bluefor modern, since they ought to have GPS but seemingly
don't.

This change does nothing until https://github.com/pydcs/dcs/pull/102
lands and we update to it.
This commit is contained in:
Dan Albert
2020-11-22 13:25:04 -08:00
parent 2557383946
commit 17b0cee507
3 changed files with 20 additions and 4 deletions

View File

@@ -36,10 +36,14 @@ class ForcedOptionsGenerator:
elif self.game.settings.labels == "Off":
self.mission.forced_options.labels = int(Labels.Off)
def _set_unrestricted_satnav(self) -> None:
blue = self.game.player_faction
red = self.game.enemy_faction
if blue.unrestricted_satnav or red.unrestricted_satnav:
self.mission.forced_options.unrestricted_satnav = True
def generate(self):
self._set_options_view()
self._set_external_views()
self._set_labels()
self._set_unrestricted_satnav()