mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
- factor out own class for the iadsnetwork within the conflicttheater - This class will handle all Skynet related things - no specific group_name handling necessary in future - make iadsbuilding own TGO class because SAM & EWRs are Vehicle Groups. IADS Elements dont have any groups attached. - added command center, connection node and power source as Ground objects which can be added by the campaign designer - adjust lua generator to support new iads units - parse the campaign yaml to get the iads network information - use the range as fallback if no yaml information was found - complete rewrite of the skynet lua script - allow destruction of iads network to be persistent over all rounds - modified the presetlocation handling: the wrapper PresetLocation for PointWithHeading now stores the original name from the campaign miz to have the ability to process campaign yaml configurations based on the ground unit - Implementation of the UI representation for the IADS Network - Give user the option to enable or disable advanced iads - Extended the layout system: Implement Sub task handling to support PD
74 lines
1.2 KiB
Python
74 lines
1.2 KiB
Python
import inspect
|
|
import dcs
|
|
|
|
REQUIRED_BUILDINGS = [
|
|
"ammo",
|
|
"factory",
|
|
"fob",
|
|
]
|
|
|
|
IADS_BUILDINGS = [
|
|
"comms",
|
|
"power",
|
|
"commandcenter",
|
|
]
|
|
|
|
DEFAULT_AVAILABLE_BUILDINGS = [
|
|
"fuel",
|
|
"oil",
|
|
"ware",
|
|
"farp",
|
|
"derrick",
|
|
]
|
|
|
|
WW2_FREE = ["fuel", "ware"]
|
|
WW2_GERMANY_BUILDINGS = [
|
|
"fuel",
|
|
"ww2bunker",
|
|
"ww2bunker",
|
|
"ww2bunker",
|
|
"allycamp",
|
|
"allycamp",
|
|
]
|
|
WW2_ALLIES_BUILDINGS = [
|
|
"fuel",
|
|
"allycamp",
|
|
"allycamp",
|
|
"allycamp",
|
|
"allycamp",
|
|
"allycamp",
|
|
]
|
|
|
|
FORTIFICATION_BUILDINGS = [
|
|
"Siegfried Line",
|
|
"Concertina wire",
|
|
"Concertina Wire",
|
|
"Czech hedgehogs 1",
|
|
"Czech hedgehogs 2",
|
|
"Dragonteeth 1",
|
|
"Dragonteeth 2",
|
|
"Dragonteeth 3",
|
|
"Dragonteeth 4",
|
|
"Dragonteeth 5",
|
|
"Haystack 1",
|
|
"Haystack 2",
|
|
"Haystack 3",
|
|
"Haystack 4",
|
|
"Hemmkurvenvenhindernis",
|
|
"Log posts 1",
|
|
"Log posts 2",
|
|
"Log posts 3",
|
|
"Log ramps 1",
|
|
"Log ramps 2",
|
|
"Log ramps 3",
|
|
"Belgian Gate",
|
|
"Container white",
|
|
]
|
|
|
|
FORTIFICATION_UNITS = [
|
|
c for c in vars(dcs.vehicles.Fortification).values() if inspect.isclass(c)
|
|
]
|
|
FORTIFICATION_UNITS_ID = [
|
|
c.id for c in vars(dcs.vehicles.Fortification).values() if inspect.isclass(c)
|
|
]
|