(1) (a) A person commits obstructing a peace officer, firefighter, emergency medical service provider, rescue specialist, or volunteer when, by using or threatening to use violence, force, physical interference, or an obstacle, such person knowingly obstructs, impairs, or hinders the enforcement of the penal law or the preservation of the peace by a peace officer, acting under color of his or her official authority; knowingly obstructs, impairs, or hinders the prevention, control, or abatement of fire by a firefighter, acting under color of his or her official authority; knowingly obstructs, impairs, or hinders the administration of medical treatment or emergency assistance by an emergency medical service provider or rescue specialist, acting under color of his or her official authority; or knowingly obstructs, impairs, or hinders the administration of emergency care or emergency assistance by a volunteer, acting in good faith to render such care or assistance without compensation at the place of an emergency or accident.
(b) To assure that animals used in law enforcement or fire prevention activities are protected from harm, a person commits obstructing a peace officer or firefighter when, by using or threatening to use violence, force, physical interference, or an obstacle, he or she knowingly obstructs, impairs, or hinders any such animal.
(2) It is not a defense to a prosecution under this section that the peace officer was acting in an illegal manner, if he or she was acting under color of his or her official authority. A peace officer acts "under color of his or her official authority" if, in the regular course of assigned duties, he or she makes a judgment in good faith based on surrounding facts and circumstances that he or she must act to enforce the law or preserve the peace.
(2.5) If a person is alleged to have committed the offense described in subsection (1)(a) or (1)(b) of this section by using or threatening to use an unmanned aircraft system as an obstacle, the offense does not apply if the person who operates the unmanned aircraft system:
(a) Obtains permission to operate the unmanned aircraft system from a law enforcement agency or other entity that is coordinating the response of peace officers, firefighters, emergency medical service providers, rescue specialists, or volunteers to an emergency or accident;
(b) Continues to communicate with such entity during the operation of the unmanned aircraft system; and
(c) Complies immediately with any instructions from the entity concerning the operation of the unmanned aircraft system.
(3) Repealed.
(4) Obstructing a peace officer, firefighter, emergency medical service provider, rescue specialist, or volunteer is a class 2 misdemeanor.
(5) For purposes of this section, unless the context otherwise requires:
(a) "Emergency medical service provider" means a member of a public or private emergency medical service agency, whether that person is a volunteer or receives compensation for services rendered as such emergency medical service provider.
(b) "Obstacle" includes an unmanned aircraft system.
(c) "Rescue specialist" means a member of a public or private rescue agency, whether that person is a volunteer or receives compensation for services rendered as such rescue specialist.