Tutorial; AddSubsystem - HWRM/KarosGraveyard GitHub Wiki
How to Add a Subsystem to a Ship
Note: I patched this stuff together from what was in the FAQ. I didn't check for mistakes. Please fix anything that's wrong, or make additions. -Mikali
As an example let's look at the hyperspace module on the carrier. Look for this line (in the corresponding ".ship" file):
AddShipAbility(NewShipType, "HyperSpaceCommand", 0, ...)
and change the "0" to a "1". The 0 means that the ability is added by something else, while a 1 means that the ship has that ability from the beginning.
You also want to look for something like this:
StartShipHardPointConfig(NewShipType,"Generic 1", "HardpointGeneric1", "System", "Generic", "Destroyable", "", "Hgn_C_Module_Research", <modulename>, "Hgn_C_Module_PlatformControl","Hgn_C_Module_CloakGenerator", "Hgn_C_Module_HyperspaceInhibitor", "Hgn_C_Module_FireControl", "Hgn_C_Module_ResearchAdvanced", "Hgn_C_Module_BuildSpeed")
and change "<modulename>" to the name of the subsystem you want to be there when the ship is built (e.g. "Hgn_C_Module_Hyperspace").
Updated Formatting? Initial
Updated for HWRM? Initial