(a)Notwithstanding any other provision of this part, except as provided in this section and in Sections 814, 814.2, 845.4, and 845.6, or in Title 2.1 (commencing with Section 3500) of Part 3 of the Penal Code, a public entity is not liable for:
(1)An injury proximately caused by any prisoner.
(2)An injury to any prisoner.
(b)Nothing in this section affects the liability of a public entity under Article 1 (commencing with Section 17000) of Chapter 1 of Division 9 of the Vehicle Code.
(c)Except for an injury to a prisoner, nothing in this section prevents recovery from the public entity for an injury resulting from the dangerous condition of public property under Chapter 2 (commencing with Section 830) of this part.
(d)Nothing in this section exonerates a public employee from liability for injury proximately caused by his negligent or wrongful act or omission. The public entity may but is not required to pay any judgment, compromise or settlement, or may but is not required to indemnify any public employee, in any case where the public entity is immune from liability under this section; except that the public entity shall pay, as provided in Article 4 (commencing with Section 825) of Chapter 1 of this part, any judgment based on a claim against a public employee who is lawfully engaged in the practice of one of the healing arts under any law of this state for malpractice arising from an act or omission in the scope of his employment, and shall pay any compromise or settlement of a claim or action, based on such malpractice, to which the public entity has agreed.