David Petraeus may be going through a sex scandal that led to his resignation as CIA director, but he's already been re-enlisted for active duty in one place- "Call of Duty: Black Ops 2."

The highly-anticipated video game was released at midnight on Tuesday to millions of fans who couldn't wait to play the iconic military shooting franchise.

"Black Ops 2" was written by David S. Goyer and Treyarch studio director Dave Anthony. Seasoned military thinkers such as P.W. Singer also gave their advice.

The video game combines real-life events from the late 1980s to a possible future "post-Cold War" set in 2025.

The video game website Kotaku posted a clip from "Black Ops 2" that showed Petraeus' character being handed over a terrorist prisoner aboard an aircraft carrier, according to The Wall Street Journal. The aircraft also happened to be named the "USS Barack Obama."

Petraeus is voiced by actor Jim Meskimen. The actor previously played former President John F. Kennedy in the original "Black Ops," which was released in 2010.

Head of Treyarch studio Mark Lamia explained the idea of creating real and fantasy characters in "Black Ops 2."

"It's not important for us to make a perfectly realistic game," Lamia said. "It's important for us to make a really awesome game that feels plausibly authentic," he explained.

In another scene, Petraeus sits in a military plane next to fictional Commander- in-Chief President Bosworth. President Bosworth is said to have similar features of the real-life Secretary of State Hillary Clinton. In that scene, the plane is attacked by an enemy aircraft while flying over a war-zoned Los Angeles. The players are announced to have survived later on in the game.

"We try to create everything in this world as a very rich, plausibly authentic setting. And then we carve our fiction right through it," Lamia said.

After a long and rewarding career in the United States military, in which he grew to be a four-star general and commander of U.S. forces in Afghanistan, Peatraeus resigned from his position as CIA director on Friday.

He stepped down after admitting he had an extramarital affair with his biographer Paula Broadwell.

The case is said to be more than a sex scandal, with concerns raised about possible security leaks, according to CNN. The affair came to light during an FBI investigation of "jealous" emails sent by Broadwell to another woman named Jill Kelley.

Kelley, 37, told CNN she is just a friend to Petraeus and his family.