SH3/4 AI Subs on the surface are using a Ship's AI. Not a Submarine AI controller as I believe there is no good Submarine AI for those versions.
I think if you try to use a stock Player Sub as an AI Sub they just work on the surface and don't do anything except follow way points?
Place one under water and they just float to the surface if I recall correctly.