Yeah I started on a powerpoint presentation for TwigLib, never got around to it.
Plug me your questions and either myself or Tartiflette will have a good idea how to help you with them. I'm going to be busy the next couple of days, but post them here and I'll get back to you.
There is nothing special with weapons in TwigLib but there are a few ways in which they are brought into the game.
In method A the weapons are on whatever the child ship is, whatever is in that variant file is loaded - guns and all - and effectively it runs under it's own AI by the computer. Useful for parts that only have defensive weapons. This is the default behavior. There is a special AI if you want to use it called "Slave AI" in the AI types that will automatically target whatever the player is targetting if it has no other target.
"AIType": "SLAVE_AI",
If you have no weapons on the twig there is an AI for that too
"AIType": "NO_AI",
Useful if the part is just a slab of armour and doesn't do anyting
In the second method is where you add weapon slots on the root ship in the position they will be in on the sub-ship. Then when the subship dies or is destroyed/falls off the Twig code goes and disables these weapons permanently and makes them transparent.
If you have a look at the Stheno_Armored file you will note two extra attributes:
"onDeathHostWeaponAlpha":"WS0010,WS0020",
"onDeathHostWeaponDisable":"WS0010,WS0020"
This attributes tells the twig lib code to disable and make transparent any weapons in these weapon slots and removes them from the weapon groupings IIRC when the sub-ship is gone.
Any other questions?
Or are you looking for information about weapons as a seperate topic to twiglib?