Block Specific Classes?

noodleboy347

L1: Registered
Jun 29, 2009
30
0
Is it possible to create a trigger or brush that prevents certain classes from entering, but allows others to enter? For example, a Spy-only room, or a room that allows every class except Pyros.
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
Maybe if you had a server plugin, but AFAIK no. While there is a filter_activator_class entity, it operates on a different level (ex. player versus grenade object) than TF2 classes.

You could try to make spy-only areas by using some built-in sentry guns so that only a cloaked enemy could reliably pass, but...
 

Jamini

L4: Comfortable Member
Nov 14, 2008
196
47
No it's not possible.

Terr, spy's can zap world based sentries. Although it doesn't kill them, it disables them for others to pass.

Suddenly TF2 Coop Storyline mode sounds very interesting. Imagine the possibilities!
 

Pilk

L2: Junior Member
Jun 9, 2009
66
4
It would be easy to create a brush 140-150 units high to block all classes apart from

  • Triple Jumping Scouts
  • Soldiers
  • Demomen
from getting past. Even Engineers standing on sentry guns or crouch jumping can't jump that high. ;D
Anything higher than ~170 and a Scout can't get past either.

I know it's not exactly what you were after, but its useful knowledge :)
 

Terr

Cranky Coder
aa
Jul 31, 2009
1,590
410
Terr, spy's can zap world based sentries.
Not if they can't get close enough: Playerclip to the rescue ;) You could also set up two different sentries with overlapping fields of fire, so that no disguise would work. And while cloaked, no sapping is possible.

I'd be more concerned with BONK! scouts, perhaps even acting as decoys.