Randomly Active Capture Points

Discussion in 'Mapping Questions & Discussion' started by Cheesecake, Jul 16, 2010.

  1. Cheesecake

    Cheesecake L1: Registered

    Messages:
    8
    Positive Ratings:
    0
    Hey all,

    I have a bit of a strange question to ask :

    Now I have this concept idea I wish to try out for a TF2 Map but i have been trying to think of how I am going to pull it off.

    Basically what i need is someway to generate a random number.

    What I want to do is have a CTF Map with several capture points on it. One is active to start with, when the intel is capped I wish for one of the other capture points to become active but chosen at random. So everytime the intel has been capped a random new control cap is activated.

    The control points will be specified of course I just want a method of picking one at random ?

    If you have any idea or if this is even possible I would very much appreciate the help :)

    Thank You
     
  2. Drexer

    Drexer L2: Junior Member

    Messages:
    66
    Positive Ratings:
    39
    Logic_case to choose up to 16 responses to an action. You just use PickRandom with it and define the cases you need to activate the needed outputs.
     
    • Thanks Thanks x 1
  3. Trotim

    aa Trotim

    Messages:
    1,179
    Positive Ratings:
    992
    I'm currently making a map that also chooses a random CP to unlock. What I've done is use a logic_case with as many cases as you have CPs that gets a PickRandomShuffle input from e.g. the setup timer (or anything else applicable). (PickRandomShuffle makes sure no case that's already been chosen gets picked again.) Then you can use the logic_case's OnCase01 etc. outputs to unlock whichever CP you want.
     
    • Thanks Thanks x 1
  4. Cheesecake

    Cheesecake L1: Registered

    Messages:
    8
    Positive Ratings:
    0
    Thanks for the info guys, a lot of help :)

    Havnt used the logic case before so now i know :)

    Im planning to have at least 4 capture points, each one can randomly picks one of the others. Each control point can be used again and again, ie reset then activated if picked at random from another capture point.

    So im thinking a logic case for each point as i need cases to be picked again to activate the capture area again if selected again, means a lot of extra logic but it should work fine.
     
    Last edited: Jul 16, 2010