Help with 2 cp's opening a door

Discussion in 'Mapping Questions & Discussion' started by C00Kies, Nov 2, 2010.

  1. C00Kies

    C00Kies L3: Member

    Messages:
    132
    Positive Ratings:
    21
    Hay

    I'm making a map that is an A/D A+B>C (Gravel pit) and I am not sure how to make it work so that when both A + B both are captured by Blu, a door is opened. Both A+B are required to open the door. Ive been looking up different entitys on the Dev site but i am not sure how to do it, I'm not vary knowledgeable about entitys. I may be thinking to hard about it and over-looking something but if anyone has any ideas, I would be glad to hear them.

    Thanks
     
  2. red_flame586

    red_flame586 L7: Fancy Member

    Messages:
    437
    Positive Ratings:
    108
    1. Create a door (make sure the touch open flag is off)
    2. Create a maths counter
    3. When a point is capped, add one to the maths counter
    4. When maths counter = 2, open the door

    I hope this helps, if you need any more details, just ask
     
    • Thanks Thanks x 1
  3. C00Kies

    C00Kies L3: Member

    Messages:
    132
    Positive Ratings:
    21
    Ok so i put a math counter in and it didn't work

    what is did with each Cap's Relay put an output:
    OnTrigger math_counter add 1

    and on the math counter I set the minimum and maximum legal value to 2 (i also tryed w/ minimum value at 0 and it didn't work) and put an output:
    OnGetValue Door Open

    I dont know what I did wrong. I made a test_gameplay map to test it so if you need i can send you the vmf.

    Thanks
     
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    min value: 0
    max value: 2
    Then use the OnHitMax output to open the door.
     
    • Thanks Thanks x 1
  5. C00Kies

    C00Kies L3: Member

    Messages:
    132
    Positive Ratings:
    21
    Ive set it to that and now it works but now the door opens if 1 cp is captured it doesn't require both of them.

    the 2 relays are still set to add 1 each
     
  6. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    Then you have something incorrectly outputing. Double check the names of things and what is going where.
     
    • Thanks Thanks x 1
  7. C00Kies

    C00Kies L3: Member

    Messages:
    132
    Positive Ratings:
    21
    Ok i fixed it. I hadn't set the add output to only once :facepalm: so capturing a cp lead to adding 1 over and over.

    Thanks for all the help it was vary help full :thumbup: