An NYPD officer who opened fire last year on a car in Pelham after a night of heavy drinking faces nine years in prison after pleading guilty to attempted murder as part of a plea deal in Westchester County on Tuesday.

Officer Brendan Cronin, 28, of Yonkers, had spent April 29, 2014, at the NYPD's in-service training center at Rodman's Neck in the Bronx, and then allegedly went drinking afterward before heading home from City Island.

He opened fire on a car occupied by driver Robert Borelli and Joseph Felice, both of New Rochelle, who were stopped at a traffic light on their way home from a hockey game, and allegedly fired more than a dozen shots, hitting Felice six times.

Story2 men shot by 'black out' drunk cop sue NYPD

Felice allegedly suffered wounds to the back, shoulder, arm and chest from Cronin's 9-mm Glock service weapon, and required multiple surgeries.

advertisement | advertise on newsday

Cronin was arrested a few blocks away in an apparent intoxicated state by Pelham police, officials said.

In addition to the criminal case, the incident also triggered civil suits by Borelli and Felice that say Cronin was "blackout drunk" and re-enacting his training, and seeks to hold the NYPD liable for failing to rein in alcoholism in the ranks. It is pending.

Cronin pleaded guilty Tuesday to two counts of attempted murder, two counts of first-degree assault and one count of driving while intoxicated, according to the office of Westchester District Attorney Janet DiFiore.

He remained free on $150,000 bail after his plea, but was ordered to surrender Sept. 29 and will be sentenced on Dec. 2. The NYPD said he had been suspended pending termination.

Lawyers for Cronin, Borelli and Felice did not return calls for comment.