mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Option to define culling exclusion radius in campaign yaml file
This commit is contained in:
parent
bd4eb3e105
commit
39426dde45
@ -170,6 +170,8 @@ VERSION = _build_version_string()
|
|||||||
#:
|
#:
|
||||||
#: Version 10.5
|
#: Version 10.5
|
||||||
#: * Support for scenery objectives defined by quad zones.
|
#: * Support for scenery objectives defined by quad zones.
|
||||||
#: * Campaign designers can now define `max_frontline_length` (in km) setting:
|
#: * Campaign designers can now define more settings:
|
||||||
#: `max_frontline_length: 25`
|
#: `max_frontline_length: 25` (in km)
|
||||||
|
#: `culling_exclusion_radius: 35` (in km)
|
||||||
|
|
||||||
CAMPAIGN_FORMAT_VERSION = (10, 5)
|
CAMPAIGN_FORMAT_VERSION = (10, 5)
|
||||||
|
|||||||
@ -144,6 +144,8 @@ class NewGameWizard(QtWidgets.QWizard):
|
|||||||
automate_aircraft_reinforcements=self.field("automate_aircraft_purchases"),
|
automate_aircraft_reinforcements=self.field("automate_aircraft_purchases"),
|
||||||
supercarrier=self.field("supercarrier"),
|
supercarrier=self.field("supercarrier"),
|
||||||
max_frontline_length=campaign.data.get("max_frontline_length", 80),
|
max_frontline_length=campaign.data.get("max_frontline_length", 80),
|
||||||
|
perf_culling=campaign.data.get("culling_exclusion_radius") is not None,
|
||||||
|
perf_culling_distance=campaign.data.get("culling_exclusion_radius", 100),
|
||||||
)
|
)
|
||||||
generator_settings = GeneratorSettings(
|
generator_settings = GeneratorSettings(
|
||||||
start_date=start_date,
|
start_date=start_date,
|
||||||
|
|||||||
@ -15,6 +15,7 @@ description: "<p>This mission was designed for the We Run Liberation group [WRL]
|
|||||||
</p>"
|
</p>"
|
||||||
miz: Battle4Georgia.miz
|
miz: Battle4Georgia.miz
|
||||||
max_frontline_length: 30
|
max_frontline_length: 30
|
||||||
|
culling_exclusion_radius: 35
|
||||||
performance: 2
|
performance: 2
|
||||||
version: "10.5"
|
version: "10.5"
|
||||||
recommended_player_money: 2000
|
recommended_player_money: 2000
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user