The suggestion of having a ship designed around a weapon has come up time and again but I think I have a solution for it that should not take all that much work on the developers part and will add some extra possibilities for the modders.
I suggest an new type of weapon mount, I'll call it "LOCKED" for now. Along with a partner variable called "weaponID". Both of these are to be used in the "weaponSlots" section of any ".ship" file.
The new "LOCKED" mount type will have the unique effect of not showing up in the refit screen which will make it impossible for the player to change the weapon. You could if you want also give it extra hitpoints akin to the "HARDPOINT" type, maybe even more so. Its rotation speed could also be slower perhaps, I expect this kind of weapon will usual be rather large compared to the craft it is mounted on. Then again the weapons used for this type of mount will likely be unique and rotation speed could simply be governed by the weapons statistics.
The new "weaponID" variable will need to be given a weapon ID, which is of course the weapon given to the "LOCKED" mount.
It would look like this:
"weaponSlots": [
{
"angle": 0,
"arc": 5,
"id": "WS 001",
"locations": [
34,
-6
],
"mount": "LOCKED",
"size": "MEDIUM",
"type": "BALLISTIC"
"weaponID": "chaingun"
},
],
First of all it will give what modders have bin asking for, a way of giving a ship a permanent weapon that players can't change which will allow modders to design ships around specific unique weapons.
Second it should work very will with all the AI calculations the game already makes during combat, seeing as it is a weapon mount the computer should have no problem with it. Becuase it is a weapon mount the weapon on it will be usable in the weapon groups we already have and would act no different then any other weapon and would be controlled in the very same way.
However I can see three problem with this suggestion.The latest weapon loss after battle feature of the game. Seeing as this is still a weapon mount it will be subjected to the same loss chance if a ship with it is destroyed in battle but gets repaired afterward. The "LOCKED" weapon mount type will need to be exempted from this aspect of the game.
New ships for sale at stations don't come with weapons (at least not initially), which is a problem because players can't add (or even buy) the unique weapons used for the "LOCKED" mount. So ships with "LOCKED" mounts will always have to spawn with this weapons already in place.
The weapons used for this type of mount will most likely (though not exclusively) be unique weapons that should not appear on other ships. The problem is that they could still show up as loot after a battle right now. It would be vital to have weapons placed on "LOCKED" mounts be exempted from this rule.
EXTRA NOTE: The mount should display the picture of the weapon as it normally does I think. This allows for the possibility of rotation movement for the weapon should it ever be necessary, which is not out of the question.