The RPG you are thinking of is Dread.
A co op game like Pandemic does a good job of this as you can see the end coming and you know if certain cards get drawn an outbreak happens and it can spread and do all kinds of damage.
The hidden traitor games like Battlestar Galactica and Shadows over...