^^ this,... and you would want to mount the pistol on a gimbal in the center of the vessel - where recoil is directed in the most vertical plane possible - enabling better control - and even programming to compensate as the trigger is actuated.
I guarantee you, the good 'ole Armed foreces...