The 24-year-old former Purdue student admitted Thursday that he entered the Electrical Engineering Building before noon Jan. 21 with a gun and a knife. Responding to Tippecanoe County Prosecutor Pat Harrington's questions, Cousins told the court he entered the basement classroom, shot 21-year-old Andrew Boldt and then stabbed him with the knife.

Cousins also said it was his intent when he went to the campus to kill Boldt, but nothing was discussed about Cousins' motive. It's not an element of the crime.

Special public defender Kirk Freeman said his client pleaded guilty without a plea agreement, reserving the right to raise mental health questions before Cousins is sentenced.

"The 'guilty but mentally ill' will be argued at the sentencing Sept. 19," Freeman said.

The hearing begins at 1:15 p.m., Harrington said.

At that time, state-appointed mental health experts who examined Cousins will testify about their findings, and Tippecanoe Superior 2 Judge Thomas Busch will have to determine Cousins' insanity claims.

Cousins faces between 45 and 65 years in prison for killing Boldt. The guilty plea eliminates the chance he might be found not guilty by reason of insanity. In Indiana, a defendant who raises the issue of mental health must prove the person was unable to appreciate the wrongfulness of his actions at the time of the offense, according to a Journal & Courier story published June 1 on the subject.

Because Cousins admitted his guilt, all of the not-guilty options are off the table.

If he is found to be mentally ill, he will receive mental health treatment for his specific ailment during his time in prison, according to the June 1 story.

Cody M. Cousins, 23, walks to his initial hearing at the Tippecanoe County Jail in Lafayette Thursday, Jan. 23, 2014. He is charged with murder in the shooting and stabbing death of engineering student Andrew Boldt on the campus of Purdue University. (Photo: John Terhune, Journal & Courier/AP)

The family of Cody Cousins walks into the Tippecanoe County Jail, Thursday, Jan. 23, 2014, before his initial hearing on a charge of murder in the shooting and stabbing of Purdue engineering student Andrew Boldt on Tuesday. (Photo: Michael Heinz/Journal & Courier)

Candles are lit during a vigil for a teaching assistant who was fatally shot on campus at Purdue University Tuesday, Jan. 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

Purdue University students, faculty, family and friends gather at the steps of Hovde Hall for a vigil for a teaching assistant who was fatally shot on campus Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

Purdue University students, faculty, family and friends gather at the steps of Hovde Hall for a vigil for a teaching assistant who was fatally shot on campus Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

Purdue University students, faculty, family and friends gather at the steps of Hovde Hall for a vigil for a teaching assistant who was fatally shot on campus Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

Taps is played during a vigil for a teaching assistant who was fatally shot on campus at Purdue University Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

Purdue University Student President Kyle Pendergast speaks during a vigil for a teaching assistant who was fatally shot on campus at the university Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

Purdue University Provost Tim Sands speaks during a vigil for a teaching assistant who was fatally shot on campus at the university Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

Purdue University students light candles for a vigil for a teaching assistant who was fatally shot on campus at Purdue University Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

Some one watches from a window of the Materials and Electrical Engineering building a vigil for a teaching assistant who was fatally shot on campus at Purfdue University Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

Purdue University Glee Club sing during a vigil for a teaching assistant who was fatally shot on campus at the university Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

A path is lit for members of the Purdue All-American Marching Band during a vigil for a teaching assistant who was fatally shot on campus at Purdue University Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

Members of the Purdue All-American Marching Band make their way to a vigil for a teaching assistant who was fatally shot on campus at Purdue University Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

Candles are lit during a vigil for a teaching assistant who was fatally shot on campus at Purdue University Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

A young lady listens to a speaker during a vigil for a victim who was fatally shot on campus at Purdue University Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

Purdue University students, faculty, family and friends gather at the steps of Hovde Hall for a vigil for a teaching assistant who was fatally shot on campus Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

People light candles for a vigil for a teaching assistant who was fatally shot on campus at Purdue University Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

Purdue University students, faculty, family and friends gather at the steps of Hovde Hall for a vigil for victim who was fatally shot on campus Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

Purdue University students, faculty, family and friends gather for a vigil for a teaching assistant who was fatally shot on campus Tuesday, January 21, 2014, in West Lafayette. The victim was identified as Andrew Boldt, 21, a senior in electrical engineering from Wisconsin who lived on campus, according to Purdue. A suspect identified as Cody Cousins, 23, of Centerville, Ohio, was booked into Tippecanoe County Jail and was being held without bond in connection with the homicide, jail officials said. (Photo: Michael Heinz/Journal & Courier)

EMS personnel speak, Tuesday, Jan. 21, 2014, with Cody Cousins, 23, outside Electrical Engineering building on the campus of Purdue University in West Lafayette, Ind. Cousins was booked into the Tippecanoe County jail on a preliminary charge of murder. (Photo: John Terhune/Journal & Courier)

This undated booking photo provided by the Tippecanoe County Jail shows Cody Cousins, who faces preliminary charges of murder for the shooting death of Andrew Boldt, a 21-year-old Purdue University student from West Bend, Wis., inside the school's Electrical Engineering Building, on Tuesday, Jan. 21, 2014. (Photo: Tippecanoe County Jail/AP)

A 23-year-old man identified as Cody Cousins was arrested in connection with the shooting. He was booked into the Tippecanoe County Jail Tuesday evening on a murder charge. Andrew Boldt, (PICTURED ) a 21-year-old teaching assistant, died in the shooting. (Photo: Purdue University)

West Lafayette Police gather evidence at the scene after shots were fired around noon Tuesday, January 21, 2014, inside the Electrical Engineering building on the campus of Purdue University. University officials announced at a 2:30 press conference that one person was killed. One person is in custody. (Photo: John Terhune/Journal & Courier)

Police from West Lafayette and Purdue University gather after shots were fired around noon Tuesday, January 21, 2014, inside the Electrical Engineering building on the campus of Purdue University. University officials announced in a 2:30 press conference that one person was killed. One person is in custody. (Photo: John Terhune/Journal & Courier)

Police evacuate students from the Electrical Engineering building after shots were fired around noon Tuesday, January 21, 2014, on the campus of Purdue University. University officials announced at a 2:30 press conference that one person was killed. One person is in custody. (Photo: John Terhune/Journal & Courier)

A member of the Tippecanoe County Sheriff's Office on the scene after shots were fired around noon Tuesday, January 21, 2014, inside the Electrical Engineering building on the campus of Purdue University. University officials announced at a 2:30 press conference that one person was killed. One person is in custody. (Photo: John Terhune/Journal & Courier)

Students pass the Electrical Engineering building (background) after a campus-wide lockdown was lifted after shots were fired around noon Tuesday, January 21, 2014, on the campus of Purdue University. University officials announced at a 2:30 press conference that one person was killed. One person is in custody. (Photo: John Terhune/Journal & Courier)

after shots were fired around noon Tuesday, January 21, 2014, inside the Electrical Engineering building on the campus of Purdue University. One person is in custody. (Photo: John Terhune/Journal & Courier)

West Lafayette Police Chief Jason Dombkowski, left, on the scene after shots were fired around noon Tuesday, January 21, 2014, inside the Electrical Engineering building on the campus of Purdue University. University officials announced at a 2:30 press conference that one person was killed. One person is in custody. (Photo: John Terhune/Journal & Courier)

A man is taken into custody by police Jan. 21, 2014, following a fatal shooting on the Purdue University campus in West Lafayette, Ind on the sidewalk outside the
Electrical Engineering Building. It's unclear if the man had any involvement in the incident. (Photo: Carl Abernathy/Purdue Exponent)

A police officer heads to the Mobile Operations Communication Center after shots were fired around noon Tuesday, January 21, 2014, inside the Electrical Engineering building on the campus of Purdue University. University officials announced at a 2:30 press conference that one person was killed. One person is in custody. (Photo: John Terhune/Journal & Courier)

Police set up a mobile operations unit as they investigate a shooting in the Electrical Engineering building on the campus of Purdue University in Lafayette. (Photo: Justin Mack/Lafayette Journal & Courier)

Police close off Northwestern Avenue in Lafayette as they investigate a shooting in the Electrical Engineering building on the campus of Purdue University. (Photo: Emily Campion/Lafayette Journal & Courier)

Josh Yuill, @thee_jaytee, 22, senior, tweeted this photo with: "the cops rushed in and took this guy down right in front of me at Armstrong!"After asking him more about about it, he said: "I snapped it as the police took him out." (Photo: Josh Yuill/AP)

A police officer walks out of the Electrical Engineering Building on the campus of Purdue University in West Lafayette, Ind., Tuesday, Jan. 21, 2014, where one person was killed inside a classroom by a gunman who surrendered to a police officer within minutes of the attack, officials said. (Photo: Michael Conroy/AP)

A police officer walks out of the Electrical Engineering Building on the campus of Purdue University in West Lafayette, Ind., Tuesday, Jan. 21, 2014, where one person was killed inside a classroom by a gunman who surrendered to a police officer within minutes of the attack, officials said. (Photo: Michael Conroy/AP)

A police vehicle is parked outside the Electrical Engineering Building on the campus of Purdue University in West Lafayette, Ind., Tuesday, Jan. 21, 2014, where one person was killed inside a classroom by a gunman who surrendered to a police officer within minutes of the attack, officials said. (Photo: Michael Conroy/AP)

EMS personnel speak with an individual detained after shots were fired around noon Tuesday, January 21, 2014, inside the Electrical Engineering building on the campus of Purdue University in West Lafayette, Ind. University officials announced at a 2:30 press conference that one person was killed. One person is in custody. The identity of the person in the photo could not be immediately determined. (Photo: John Terhune/Journal & Courier)