mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
- load plugins when loading a game - moved plugins scripts to resources/plugins (for pyinstaller) - removed vanilla JTAC and JTAC_smoke options and settings GUI - call JtacAutolasePlugin in armor.py - made a dictionary of INSTALLED_PLUGINS - removed NIOD from the VEAF plugin
50 lines
1.6 KiB
Python
50 lines
1.6 KiB
Python
from plugin import INSTALLED_PLUGINS
|
|
|
|
class Settings:
|
|
|
|
def __init__(self):
|
|
# Generator settings
|
|
self.inverted = False
|
|
self.do_not_generate_carrier = False # TODO : implement
|
|
self.do_not_generate_lha = False # TODO : implement
|
|
self.do_not_generate_player_navy = True # TODO : implement
|
|
self.do_not_generate_enemy_navy = True # TODO : implement
|
|
|
|
# Difficulty settings
|
|
self.player_skill = "Good"
|
|
self.enemy_skill = "Average"
|
|
self.enemy_vehicle_skill = "Average"
|
|
self.map_coalition_visibility = "All Units"
|
|
self.labels = "Full"
|
|
self.only_player_takeoff = True # Legacy parameter do not use
|
|
self.night_disabled = False
|
|
self.external_views_allowed = True
|
|
self.supercarrier = False
|
|
self.multiplier = 1
|
|
self.generate_marks = True
|
|
self.sams = True # Legacy parameter do not use
|
|
self.cold_start = False # Legacy parameter do not use
|
|
self.version = None
|
|
|
|
# Performance oriented
|
|
self.perf_red_alert_state = True
|
|
self.perf_smoke_gen = True
|
|
self.perf_artillery = True
|
|
self.perf_moving_units = True
|
|
self.perf_infantry = True
|
|
self.perf_ai_parking_start = True
|
|
self.perf_destroyed_units = True
|
|
|
|
# Performance culling
|
|
self.perf_culling = False
|
|
self.perf_culling_distance = 100
|
|
|
|
# LUA Plugins system
|
|
self.plugins = {}
|
|
for pluginName in INSTALLED_PLUGINS:
|
|
plugin = INSTALLED_PLUGINS[pluginName]
|
|
plugin.setSettings(self)
|
|
|
|
|
|
|