class restrictions

Axl

L1: Registered
Dec 14, 2007
19
1
It's been a couple of years since I've done any map editing. Just wondering if there is a way to restrict classes without a plug-in or using a point_servercommand?

I guess tournament mode now allows for class restrictions. Is there a way to bake that in to the map?
 

Idolon

they/them
aa
Feb 7, 2008
2,107
6,116
I don't think there's any totally clean way to do this. However, filter_tf_class can be used to filter for a single class, which then can be used with filter_multi to combine into a whitelist/blacklist of your choosing. You'll also need a method of actually enforcing this list, which I've done before with a trigger_hurt over the spawnroom. You could also try teleporting undesired classes into another inescapable room, which is perhaps a less cruel solution.
 

[Rx.] Christian Troy

L5: Dapper Member
Jan 23, 2017
223
64
When I get home in the morning I can take a look at how a co-author did this on one of our maps (I work nights). Right now I can't remember if they were able to do this with point_clientcommand or the ugly one.
 

henke37

aa
Sep 23, 2011
2,075
515
I can only hope that you know it's a bad idea to do this in maps that resemble normal play.
 

[Rx.] Christian Troy

L5: Dapper Member
Jan 23, 2017
223
64
I have taken a look at the map we did for this and the co-author did set it up with point_clientcommand and not point_servercommand. Is this still doable for you? Right now the point_clientcommand, filter_activator_class, and the triggers are set to force people to the sniper class but it can be modified any which way you would like. It was set up for sniper only tournaments on a map designed primarily for the sniper class but, you can edit it to your liking.

Feel free to let me know and I can make ya a little .vmf prefab to post for ya. ;)
 
Last edited: