I just got done building the .dat .sim and .cam and .upc files for my mod... I think i've worked out in S3D the whole rotating barrels and animations thing, but my mod doesn't seem to show up on the submarine selection screen in the game (normally a upc file problem). I used the same format for the UPC files as always, maybe I've named some parts wrong in the .dat file.
I built the .dat file from scratch using the 20mm oerlikon file as a template/guidline.
As far as making the barrel rotate when firing only, there should be a way to link the barrel rotation animation to the firing, just like the 40mm bofors barrel recoils when firing only.
As far as ammo storage goes Merc, I would imagine the sub could reasonably hold a full drum plus one full reload, 1350 rounds plus 1350 rounds. that would allow for a total of roughly 40 seconds of firing

, surely enough to save the sub from at least a half dozen planes, as long as the radar is tracking like a Phalanx should and not manned by a SH4 AI crewmember.