(a) 
Definition.
For the purpose of this section, a firearm means any device designed, made or adapted to expel a projectile through a barrel by using the energy generated by an explosion or burning substance, or any device readily convertible to that use.
(b) 
Prohibition.
It is unlawful for any person to discharge a firearm for the purpose of discharging a shell, missile or cartridge, whether the shell, missile or cartridge is blank or live ammunition, within the corporate limits of the city.
(c) 
Defenses.
It is a defense to prosecution under this section that:
(1) 
The person was a peace officer acting in the performance of his official duties;
(2) 
The person was at a shooting range operated by an agency of the United States of America, the state or a political subdivision of the state;
(3) 
The person was at a privately owned shooting range which had been approved by the building official and the fire marshal, and which was legally operating as a permitted use in accordance with the zoning ordinances of the city;
(4) 
The person was using blank cartridges for a show or theatrical production, or for signal or ceremonial purposes in athletics or sporting events, or by a military organization; or
(5) 
The person was lawfully defending his person, the person of another, or his property.
(d) 
Penalty.
Any person found to be in violation of this section shall be guilty of a misdemeanor and shall be punished by a fine in accordance with the general penalty provision found in section 1.01.009 of this code.
(2001 Code, secs. 8.1001–8.1004)