Cody Austin Gaines and Blake Allen Sergel had plans to break into cars on New Year’s Day.

But what Gaines didn’t bet on was Sergel firing shots at Roberto Rodriguez, leaving the homeless veteran paralyzed near an overpass.

Rodriguez told a Cobb County judge he’d be dead if Gaines hadn’t stopped Sergel from firing more shots.

CRIME & PUBLIC SAFETY: Want more stories like this one? Go to www.myajc.com/crime/

“It is intolerable that any innocent victim — particularly one who risked his life serving our country —should have to pay for these teenagers’ utter disregard for human life,” Assistant District Attorney Theresa Schiefer said.

Gaines and Sergel, both 18 at the time of the shooting, were sentenced to eight and 20 years, respectively, Cobb County District Attorney spokeswoman Kim Isaza said in a news release.

The duo found Rodriguez, 57, sleeping under an overpass near the Canton Road Connector and I-75 and demanded money, Isaza said.

When Rodriguez told them he didn’t have any, Sergel shot him. Gaines pulled Sergel away and left, but not before Sergel grabbed Rodriguez’s cigarettes.

A remorseful Gaines was eventually arrested several days later on a separate entering-auto charge and told police what happened the night of the shooting, Isaza said. He also told police he did not know Sergel was going to shoot Rodriguez.

Gaines pleaded guilty in August to robbery and aggravated assault charges.

Rodriguez said in court he believed Gaines saved his life by preventing Sergel from firing more shots and acknowledged if Gaines hadn’t come forward the case likely wouldn’t have been solved.

Know what's really going on with crime and public safety in your metro Atlanta community, including breaking news, trial coverage, trends and the latest on unsolved cases. Sign up for the AJC's crime and safety newsletter delivered weekly to your inbox.

In other news:

11-Year-Old Shoots 12-Year-Old In Head At Sleepover Party