Results 1 to 4 of 4
  1. #1
    ericf042's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Location
    England
    Posts
    39
    Reputation
    10
    Thanks
    979
    My Mood
    Relaxed

    Arrow Need Help Making COD4 Trouble In Terrorist Town Mod (TTT)

    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.
    skype: ericf042

    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.
    e.g
    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
    Last edited by ericf042; 09-01-2012 at 08:14 AM.

  2. #2
    Deathrun's Avatar
    Join Date
    Aug 2012
    Gender
    female
    Location
    Home
    Posts
    80
    Reputation
    10
    Thanks
    34
    My Mood
    Shocked
    Wrong section buddy.

  3. #3
    tarquin's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Australia
    Posts
    122
    Reputation
    10
    Thanks
    5,334
    My Mood
    Angelic
    @ericf042
    Ever heard of the Hide n Seek mod for COD4? It randomly picks someone to be the seeker. Look for the mod on Google or somthing

  4. #4
    ericf042's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Location
    England
    Posts
    39
    Reputation
    10
    Thanks
    979
    My Mood
    Relaxed
    Thanks for the reply but i cant seem to download the mod, and open it in ff viewer, if you could be kind enough as to find the _rank.gsc file in the mod and send it to me, or somehow find the code, i would be so greatful (credit will be given)

Similar Threads

  1. [Help Request] Need help making perm binds
    By crenfro36 in forum Vindictus Help
    Replies: 1
    Last Post: 05-17-2011, 08:43 PM
  2. Need Help for cod4 (cracked)
    By Hackara in forum General Game Hacking
    Replies: 3
    Last Post: 02-06-2009, 09:35 PM
  3. Need help making a basic Combat Arms WALLHACK!
    By JakDG in forum C++/C Programming
    Replies: 5
    Last Post: 01-21-2009, 03:33 AM
  4. I need help make a phishing site please.
    By coolio4sho in forum WarRock - International Hacks
    Replies: 20
    Last Post: 11-07-2008, 07:43 AM
  5. [Help how?]Need help making a WR hack please look.
    By mikelmao11 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 07-18-2008, 12:43 PM

Tags for this Thread