Dunno about the 5 series, but the E46 alarm doesn't come with a shock sensor. It consists of a siren, ultrasonic motion sensor, and a tilt sensor. A shock sensor is not an option because the alarm itself is already an option.
You can buy an aftermarket one like a DEI one and hook up through an aftermarket installer.