(b) While temporarily assigned to work with another law-enforcement agency or agencies, criminal justice enforcement personnel and other state and local law-enforcement officers shall have the same jurisdiction, powers, privileges and immunities, including those relating to the defense of civil actions, as such criminal justice enforcement personnel would enjoy if actually employed by the agency to which they are assigned, in addition to any corresponding or varying jurisdiction, powers, privileges and immunities conferred by virtue of their continued employment with the assisting agency.
(c) While assigned to another agency or to a multijurisdictional task force, criminal justice enforcement personnel and other state and local law-enforcement officers shall be subject to the lawful operational commands of the superior officers of the agency or task force to which they are assigned, but for personnel and administrative purposes, including compensation, they shall remain under the control of the assisting agency. These assigned personnel shall continue to be covered by all employee rights and benefits provided by the assisting agency, including workers' compensation, to the same extent as though such personnel were functioning within the normal scope of their duties.
(d) No request or agreement between the heads of law-enforcement agencies, the heads of campus police or the head of the rangers of the Hatfield-McCoy regional recreation authority, made or entered into pursuant to this article shall remain in force or effect until a copy of said request or agreement is filed with the office of the circuit clerk of the county or counties in which the law-enforcement agencies, the campus police, or the Hatfield-McCoy regional recreation authority rangers involved operate. Agreements made pursuant to this article shall remain in effect unless and until the agreement is changed or withdrawn in writing by the head of one of the law-enforcement agencies. Upon filing, the requests or agreements may be sealed, subject to disclosure pursuant to an order of a circuit court directing disclosure for good cause. Nothing in this article shall be construed to limit the authority of the head of a law-enforcement agency, the head of campus police or the head of the rangers of the Hatfield-McCoy regional recreation authority to withdraw from any agreement at any time.
(e) Nothing contained in this article shall be construed so as to grant, increase, decrease or in any manner affect the civil service protection or the applicability of civil service laws as to any criminal justice enforcement personnel, or as to any state or local law-enforcement officer or agency operating under the authority of this article, nor shall this article in any way reduce or increase the jurisdiction or authority of any criminal justice enforcement personnel, or of any state or local law-enforcement officer or agency, except as specifically provided herein.
(f) Nothing contained in this article shall be construed so as to authorize the permanent consolidation or merger or the elimination of operations of participating federal, state, county municipal law-enforcement agencies, or other groups of state and local law-enforcement officers, the head campus police or the head of the rangers of the Hatfield-McCoy regional recreation authority.