I don't know if this has been so ever since retail, but warships just don't target cargo containers automatically unless given orders to - which is problematic for cargo depots of 10-15 containers.
I'm making a mission in which you and your wingmen must guard a cruiser as it deals with a large cargo depot and the sentries that are guarding it. I made it so that the cruiser follows a waypoint that is on the other side of the cargo depot. I was hoping it would destroy the containers, too, but it just doesn't target them at all.
I figured it's related to the "cargo" flag and the objecttypes.tbl. The "cargo" flag didn't have the "Target as Threat" flag, which means that nothing will target it automatically unless given orders to (for fighters, "Attack any ship" is fine).
Okay, so it's time to alter the tables. I created this modular table file (named cargo-obt.tbm):
$Name: Cargo
$Target as Threat: YES
$Scannable: YES
$Max Debris Speed: 200
$FF Multiplier: 0.10
$EMP Multiplier: 10.0
$Beams Easily Hit: YES
$Fog:
+Start dist: 10.0
+Compl dist: 500.0
+Disappear factor: 1.5
$AI:
+Passive docks: ( "cargo" )
$Vaporize Percent Chance: 0.0
(This is a copy/paste from the Wiki sample, with the "Target as Threat: YES" line added to it.
This doesn't do the trick. For some reason, it appears that the engine simply ignores this file. Whether I add #End to the end or not makes no difference. Adding "#Ship Types" to the top will simply crash the game on startup. I was searching in the Wiki, but couldn't find anything.
Currently, I have given the containers the "transport" flag which makes everything and everyone fire at it randomly, as intended, and it keeps its cargo scannable, but you cannot target the containers by "U". The mission works as it should with the "transport" flag trick, but it's still itching my nose. Changing the "cargo" ship type should, at least theoretically, be possible.
Can anyone help?