|
Author
|
Message
|
|
Senior Member
|

06-09-2004
, 06:48
detect team size change
|
#1
|
I'm working on a plugin that adds spawn points to a map if you need them (so far I can add spawn points like I want them). However the team size limit on both sides still seems to remain the same even when more spawn points are added, and my assumption is that CS counts the number of spawn points at map load and saves it as a variable.
Since the whole idea of the plugin is to be able to add spawn points AFTER map load, I've only so far come up with one idea (that I haven't had time to try) which is to detect when someone wants to join a team, and keep track of the number of players on both teams, and then if he wont uneven the teams too much, to switch him.
This could really affect things like PTB though or probably wont be as easy to code as it sounds (adding the spawn points sure wasnt...) Likewise, I'm not even sure if I could test it using bots, since they dont really use menus....
Anyways, any input on easy ways to do this would be helpful, or any tricks people know to make CS recount the team sizes without reloading the map will also help.
|
|
|
|