View Single Post
chundo
Senior Member
Join Date: May 2008
Old 06-25-2008 , 00:40   Re: TF2 Class Restrictions
Reply With Quote #24

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.
__________________
chundo is offline