View Single Post
x6herbius
Senior Member
Join Date: May 2011
Location: West Sussex, UK
Old 04-17-2012 , 08:49   Re: Blocking a team change in TF2
Reply With Quote #9

Quote:
Originally Posted by napalm00 View Post
I am not completely sure about this, but try delaying the above code by using a timer. A time of 100msecs (0.1 seconds) should be enough.
I had wondered about that, but I was keen on achieving everything with as little asynchronism as possible because there's potential for miscalculations to be made on the player numbers within that 0.1 second period.

As it happens, it looks as though the "jointeam" listener may be enough, as I'm saving some data about players in global variables and I think I can check them in the listener instead of the client's team. Thanks for all the help.
x6herbius is offline
Send a message via Skype™ to x6herbius