mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Inject mod plane weapons into pydcs.
Adds a simple injector that iterates over attrs of an input class and injects things that look like custom weapons into pydcs's weapons classes. Also updated all current mod aircraft configs to perform the injection.
This commit is contained in:
@@ -4,6 +4,8 @@ from dcs import task
|
||||
from dcs.planes import PlaneType
|
||||
from dcs.weapons_data import Weapons
|
||||
|
||||
from pydcs_extensions.weapon_injector import inject_weapons
|
||||
|
||||
|
||||
class MB_339PAN_Weapons:
|
||||
ARF8M3_TP = {"clsid": "{ARF8M3_TP}", "name": "ARF8M3 TP", "weight": None}
|
||||
@@ -107,6 +109,9 @@ class MB_339PAN_Weapons:
|
||||
}
|
||||
|
||||
|
||||
inject_weapons(MB_339PAN_Weapons)
|
||||
|
||||
|
||||
class MB_339PAN(PlaneType):
|
||||
id = "MB-339PAN"
|
||||
flyable = True
|
||||
|
||||
Reference in New Issue
Block a user