Compare commits
5 Commits
master
...
plugin-sky
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
45c67534e6 | ||
|
|
bcc3333d1b | ||
|
|
f9ee36db83 | ||
|
|
ca5204634a | ||
|
|
14a3279b2c |
12
.vscode/launch.json
vendored
@@ -4,6 +4,7 @@
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
|
||||
{
|
||||
"name": "Python: Main",
|
||||
"type": "python",
|
||||
@@ -15,6 +16,17 @@
|
||||
},
|
||||
"preLaunchTask": "Prepare Environment"
|
||||
},
|
||||
{
|
||||
"name": "Python: build ground objects templates",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "resources\\tools\\generate_groundobject_templates.py",
|
||||
"console": "integratedTerminal",
|
||||
"env": {
|
||||
"PYTHONPATH": ".;./pydcs"
|
||||
},
|
||||
"preLaunchTask": "Prepare Environment"
|
||||
},
|
||||
{
|
||||
"name": "Python: Make Release",
|
||||
"type": "python",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import inspect
|
||||
import dcs
|
||||
|
||||
DEFAULT_AVAILABLE_BUILDINGS = ['fuel', 'ammo', 'comms', 'oil', 'ware', 'farp', 'fob', 'power', 'factory', 'derrick', 'aa']
|
||||
DEFAULT_AVAILABLE_BUILDINGS = ['fuel', 'ammo', 'comms', 'oil', 'ware', 'farp', 'fob', 'power', 'factory', 'derrick', 'aa', 'iads-controlcenter', 'iads-ewr', 'iads-commnode', 'iads-power']
|
||||
|
||||
WW2_GERMANY_BUILDINGS = ['fuel', 'factory', 'ww2bunker', 'ww2bunker', 'ww2bunker', 'allycamp', 'allycamp', 'aa']
|
||||
WW2_ALLIES_BUILDINGS = ['fuel', 'factory', 'allycamp', 'allycamp', 'allycamp', 'allycamp', 'allycamp', 'aa']
|
||||
|
||||
@@ -9,6 +9,10 @@ class GenericSamGroupGenerator(GroupGenerator):
|
||||
"""
|
||||
This is the base for all SAM group generators
|
||||
"""
|
||||
|
||||
def __init__(self, game, ground_object, faction):
|
||||
self.faction = faction
|
||||
super(GenericSamGroupGenerator, self).__init__(game, ground_object)
|
||||
|
||||
@property
|
||||
def groupNamePrefix(self) -> str:
|
||||
|
||||
@@ -8,12 +8,11 @@ from dcs.unit import Vehicle
|
||||
|
||||
class GroupGenerator():
|
||||
|
||||
def __init__(self, game, ground_object, faction = None): # faction is not mandatory because some subclasses do not use it
|
||||
def __init__(self, game, ground_object):
|
||||
self.game = game
|
||||
self.go = ground_object
|
||||
self.position = ground_object.position
|
||||
self.heading = random.randint(0, 359)
|
||||
self.faction = faction
|
||||
self.vg = unitgroup.VehicleGroup(self.game.next_group_id(), self.groupNamePrefix + self.go.group_identifier)
|
||||
wp = self.vg.add_waypoint(self.position, PointAction.OffRoad, 0)
|
||||
wp.ETA_locked = True
|
||||
|
||||
@@ -9,6 +9,7 @@ from gen.sam.aaa_bofors import BoforsGenerator
|
||||
from gen.sam.aaa_flak import FlakGenerator
|
||||
from gen.sam.aaa_zu23_insurgent import ZU23InsurgentGenerator
|
||||
from gen.sam.group_generator import GroupGenerator
|
||||
from gen.sam.genericsam_group_generator import GenericSamGroupGenerator
|
||||
from gen.sam.sam_avenger import AvengerGenerator
|
||||
from gen.sam.sam_chaparral import ChaparralGenerator
|
||||
from gen.sam.sam_gepard import GepardGenerator
|
||||
@@ -99,7 +100,7 @@ SAM_PRICES = {
|
||||
}
|
||||
|
||||
|
||||
def get_faction_possible_sams_generator(faction: str) -> List[Type[GroupGenerator]]:
|
||||
def get_faction_possible_sams_generator(faction: str) -> List[Type[GenericSamGroupGenerator]]:
|
||||
"""
|
||||
Return the list of possible SAM generator for the given faction
|
||||
:param faction: Faction name to search units for
|
||||
|
||||
BIN
resources/ui/ground_assets/iads-commnode.png
Normal file
|
After Width: | Height: | Size: 861 B |
BIN
resources/ui/ground_assets/iads-commnode_blue.png
Normal file
|
After Width: | Height: | Size: 866 B |
BIN
resources/ui/ground_assets/iads-controlcenter.png
Normal file
|
After Width: | Height: | Size: 491 B |
BIN
resources/ui/ground_assets/iads-controlcenter_blue.png
Normal file
|
After Width: | Height: | Size: 491 B |
BIN
resources/ui/ground_assets/iads-ewr.png
Normal file
|
After Width: | Height: | Size: 982 B |
BIN
resources/ui/ground_assets/iads-ewr_blue.png
Normal file
|
After Width: | Height: | Size: 986 B |
BIN
resources/ui/ground_assets/iads-power.png
Normal file
|
After Width: | Height: | Size: 920 B |
BIN
resources/ui/ground_assets/iads-power_blue.png
Normal file
|
After Width: | Height: | Size: 920 B |
BIN
resources/ui/units/buildings/1L13 EWR.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
resources/ui/units/buildings/55G6 EWR.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
resources/ui/units/buildings/Boiler-house A.png
Normal file
|
After Width: | Height: | Size: 17 KiB |
BIN
resources/ui/units/buildings/Bunker.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
resources/ui/units/buildings/Dog Ear Radar.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
resources/ui/units/buildings/Fuel tank.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
resources/ui/units/buildings/GeneratorF.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
resources/ui/units/buildings/S-300PS 40B6MD sr.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
resources/ui/units/buildings/SKP-11.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
resources/ui/units/buildings/Ural-4320 APA-5D.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
resources/ui/units/buildings/ZiL-131 APA-80.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
@@ -64,6 +64,10 @@ CATEGORY_MAP = {
|
||||
"ww2bunker": ["Siegfried Line", "Fire Control Bunker", "SK_C_28_naval_gun", "Concertina Wire", "Czech hedgehogs 1"],
|
||||
"village": ["Small house 1B", "Small House 1A", "Small warehouse 1"],
|
||||
"allycamp": [],
|
||||
"iads-commnode": [], # I don't think the list of objects (value of the key in this dict) is ever used...
|
||||
"iads-controlcenter": [], # I don't think the list of objects (value of the key in this dict) is ever used...
|
||||
"iads-ewr": [], # I don't think the list of objects (value of the key in this dict) is ever used...
|
||||
"iads-power": [], # I don't think the list of objects (value of the key in this dict) is ever used...
|
||||
}
|
||||
|
||||
|
||||
|
||||