Late 1990s or early 2000s movie
I only remember a small part where a man is being kept in a virtual reality and made to play a role as a soldier in an American Civil War environment.
He meets some fellow prisoners who tell him what the deal is. I think he asks what happens if you die in the game?
I think it’s Cyber Vengeance (1997)
http://www.imdb.com/title/tt0112764/