BahamutoD / BDArmory

Gun turrets and other weapon systems for KSP
38 stars 112 forks source link

Suggestion: Add support of customized projectiles for launchers. #42

Open HoneyFox opened 8 years ago

HoneyFox commented 8 years ago

Hi, in current BDA implementation those projectiles' types are hard-coded. For example: RocketLauncher will attach a "Rocket" component onto the spawned rocket when firing it. The "Rocket" class is hard-coded inside the RocketLauncher class.

Could you add a KSPField of String to specify the type name of the component one RocketLauncher (mabybe also other types of launcher as well?) will attach onto the projectile by using .NET reflection? The reason I would hope for such feature is that I want to write an inherited class of "Rocket" so that I can alter/add some behavior and still use RocketLauncher to launch it.