Raised This Month: $ Target: $400
 0% 

detect team size change


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
[FBX]
Senior Member
Join Date: May 2004
Old 06-09-2004 , 06:48   detect team size change
Reply With Quote #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.
[FBX] is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode