Notwithstanding Section 12022.5, any person who, with the intent to inflict great bodily injury or death, inflicts great bodily injury, as defined in Section 12022.7, or causes the death of a person, other than an occupant of a motor vehicle, as a result of discharging a firearm from a motor vehicle in the commission of a felony or attempted felony, shall be punished by an additional and consecutive term of imprisonment in the state prison for 5, 6, or 10 years.
Ca. Pen. Code § 12022.55