Doors that filter by team based on who owns a cap

Discussion in 'Mapping Questions & Discussion' started by JohnMazz, Jan 26, 2008.

  1. JohnMazz

    JohnMazz Guest

    Positive Ratings:
    0
    I have a filter_activator_tfteam that controls a door so only one team can open it. When I manually set the allowed team in hammer, it works fine..

    What I want to do is make it so the allowed team is based on who owns a particular cap. So if red owns the cap, only red team can open the door, and vice-versa for blue.

    So In the trigger_captue_area output, I put: "OnCapTeam1 set filter_east SetTeam Red", but it doesnt work. Any ideas?
     
  2. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,527
    I think you'll just have to have two seperate triggers (with their own team filters) for the door, and enable/disable them corresponding to point capturing.
     
  3. DrHaphazard

    DrHaphazard L5: Dapper Member

    Messages:
    249
    Positive Ratings:
    12
    Well you should be able to get your system to work, and maybe someone here can figure out how to do that.

    In the mean time, however, if you just want a workaround, you could put three triggers on top of eachother, one filtered for red, one for blue and one for any (assuming anyone can use it before the point is capped) and then just disable/enable the appropriate triggers when the point is capped.

    Again thought that is just a workaround, id be interested to see a solution to the way you intended to do it.
     
  4. DrHaphazard

    DrHaphazard L5: Dapper Member

    Messages:
    249
    Positive Ratings:
    12
    Damnit Boojum, if I hadnt typed all those extra words I would have gotten in there first!
     
  5. JohnMazz

    JohnMazz Guest

    Positive Ratings:
    0
    Ah, good ideas. I'm used to more traditional programing languages, some times I'd kill for an IF statement in hammer, I'll get used to it, heh. I'll try this out and let you know.

    Oy.. I have 4 doors, two triggeres and two filters each -_-;
     
    Last edited by a moderator: Jan 26, 2008
  6. JohnMazz

    JohnMazz Guest

    Positive Ratings:
    0
    Cool, it works great. Thanks a whole bunch guys. <3
     
  7. Sean of the Dead

    Sean of the Dead L3: Member

    Messages:
    123
    Positive Ratings:
    4
    i think haphazard should get an award for most helpful member xD