View Single Post
flubber
Senior Member
Join Date: Oct 2007
Old 06-26-2008 , 13:05   Re: TF2 Class Restrictions
Reply With Quote #29

Quote:
Originally Posted by chundo View Post
Something funny is happening with this on my server. It must be missing some events somewhere that's screwing up the running class tally. At one point tonight one team was limited to 1 pyro, and the other 2, even though they were both set to 3. It would probably be more reliable to just recalculate the class counts every time someone joins/changes class rather than keep a running tally. A little more computation, but worth it given how infrequently it will be run.

Also, hooking "joinclass" may be better than "equip" - joinclass only gets called once, equip gets called three or more times on spawn.
Same problem here, one team had 1 pyro no sniper. The other had 2 pyro and 1 sniper (which is the authorized limit for us).
flubber is offline