Thats a good question actually, and I have also been wondering if theres some in-built way to limit classes. On my map I am afraid of a scout rushes galore, but I dunno of any way to limit each side to say 2 scouts.

If there was such a limit system in place though it could easily be used to make it so you could not join any class but the one you wanted for the map.

Only way I've seen it done is via SourceMod. This server mod gives access to "hidden" server commands, such as the force a soldier takes from his own rockets, and the damage he takes when shooting the floor at his feet. This is the same mod that people have used to get rid of crits as far as I am aware.

I have been told also that the last patch disabled at least the crit functionality, unaware of any others

There's an entity you can trigger, I think server_pointcommand that lets you run client commands. I know you can use this to do things like strip weapons so if you can find the right command you may be able to force a class change.

There's also likely an entity to run a client command. If you setup something that as the player spawns they activate a trigger multiple that runs a client command to change their class then with a delay teleports them away or something you might be able to do it.

Thats a good question actually, and I have also been wondering if theres some in-built way to limit classes. On my map I am afraid of a scout rushes galore, but I dunno of any way to limit each side to say 2 scouts.

If there was such a limit system in place though it could easily be used to make it so you could not join any class but the one you wanted for the map.

Click to expand...

only i map that i know does that which is the actual map itself and not just the server limiting classes is the map in TFC called The Hunted

True, I guess The Hunted limited the snipers for Bodyguards to 0 huh? Well so it was possible with the older game, but then again it might have required a bunch of complex code that is beyond my ability since I never saw it used on any custom TFC maps.