Doors that filter by team based on who owns a cap

  • If you're asking a question make sure to set the thread type to be a question!
J

JohnMazz

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?
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
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.
 

DrHaphazard

L5: Dapper Member
Jan 6, 2008
249
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.
 

DrHaphazard

L5: Dapper Member
Jan 6, 2008
249
12
Damnit Boojum, if I hadnt typed all those extra words I would have gotten in there first!
 
J

JohnMazz

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: