I would guess that the hard/software of the launching platform firecontrol system would program the function of the torpedo differently for each type of target.
Of course, in our circles, the ADCAP is also known to fly to moon and collect rock samples before acquiring and homing in on targets. :P
In addition, I've heard the ADCAP shoots fireballs out its arse.