Ok, so basically im making a TTT mod for Cod4. firstly, i would suggest you add me on skype because this could get confusing, and hard to explain.
so im currently stuck on code where i want the game to randomly select the terrorists, randomly select the innocents, and the same for detectives. I cant find a code for randomly selecting or going on chance, or percentage... I want the game to completely randomly select a player, by chance, again... completely random. so basically what i want is a peice of code which lets me randomly select something.
40% chance goto thread Terrorist();
20% chance goto thread detective();
40% chance goto thread Innocent();
i hope you get the idea. thanks for reading and please post a reply
edit: these are the %'s
25% of the population or one Traitor for every four players.
12.5% of the population or one Detective for every eight players.
The Innocent are the majority (normally 75% of the game's population