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 WeaponsA4EC:
|
||||
AN_M57__2__TER_ = {
|
||||
@@ -432,6 +434,9 @@ class WeaponsA4EC:
|
||||
}
|
||||
|
||||
|
||||
inject_weapons(WeaponsA4EC)
|
||||
|
||||
|
||||
class A_4E_C(PlaneType):
|
||||
id = "A-4E-C"
|
||||
flyable = True
|
||||
|
||||
Reference in New Issue
Block a user