Team-only doors?

gamez7

L1: Registered
Apr 19, 2015
8
1
I was wondering if there was a way to do what I am looking to make in this map, but I can't seem to figure it out myself. I want to create a door that will let whichever team currently owns a control point through, so if Blu owns the point, they can pass through, but not Red. How would I go about making this, or is it impossible?
 

Muddy

Muddy
aa
Sep 5, 2014
2,574
4,592
You could have two trigger_multiples that open the door whenever someone touches it, and set one to only open for BLU players and the other for RED players. Then have each one enable/disable depending on which team owns the point.
 

gamez7

L1: Registered
Apr 19, 2015
8
1
You could have two trigger_multiples that open the door whenever someone touches it, and set one to only open for BLU players and the other for RED players. Then have each one enable/disable depending on which team owns the point.

Alright, but how would I prevent a Red player from going through the door if a Blu player was standing on the trigger_multiple?
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
The filter_activator_tfteam has an Associated Control Point key specifically for cases like this. Set that to the CP in question and then use that filter for your triggers.
 

Géza!

L4: Comfortable Member
May 12, 2008
183
40
Alright, but how would I prevent a Red player from going through the door if a Blu player was standing on the trigger_multiple?

I'd say that needlessly complicates it. If a Blu player is opening the door and a Red one comes through, he won't stick around for long, predictably...
 

gamez7

L1: Registered
Apr 19, 2015
8
1
I'd say that needlessly complicates it. If a Blu player is opening the door and a Red one comes through, he won't stick around for long, predictably...

It's vital to the custom gamemode I'm trying to implement. If a member of the other team entered through the door, it would screw everything up.

I originally tried doing this with two func_respawnroomvisualizer s that were enabled and disabled by the CP, but that didn't seem to work.
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
If you want that, you should be able to use a func_rrv if you link it to an inaccessible func_rr, which is ALSO set to be associated with the CP in question. The caveat here is that if someone is inside the rrv when ownership changes they would get stuck.