Download the US TORPEDO OVERHAUL v1.1 mod and inspect the files to see how Captain America did it, then you can have a go at the TMO files.
Note: This is for vanilla 1.5 and the link to the mod is still working.
http://www.subsim.com/radioroom/showthread.php?t=148526