The only way I know that the gun can point in a different direction is that if you shoot it before the character menages to return the gun to the previous position and angle after the recoil is applied. It's best seen with the Uzi which can rise about twenty degrees up if the trigger is held down. But shooting a pistol fast can also lead to a less extreme version of that.