Release Team Balancer (v2.0)
#1
Forces a team re-balance if the difference between axis/allies is higher then 2
use only in teambased games (DZ/TDM/CTF etc)
   

Detects Gamemode (Compatible With: MultiServer Configs!)
   

UPDATES
(V2.0) 8-4-2012 - (Source+Binary) EasterEgg hunt turned into a final release!
* - * - * Fixed not properly resetting when balancer disabled
* - * - * Repositioned delays so it has no delay if the gametype is non-balancable (instant disable)
* - * - * Final release untill something crazy happens Smile
(V1.9) 4-4-2012 - (Source+Binary) Bugfix and minor improvements
(V1.8) 3-4-2012 - (Source+Binary) Bugfix for notification setting not working
(V1.7) 3-4-2012 - (Source+Binary) Settings added to configure Warn/re-balance mode, and ingame/serverconsole notifications (see sv_config example)
(V1.6) 29-3-2012 - (Source+Binary) No longer balancing if the gamemode is (dm, infect, oic, gun, jugg). For those with mixed GameModes in their server.
(V1.5) 27-3-2012 - (Source+Binary) TeamDifference Now configurable trough sv_config (read below)
(V1.4) 23-3-2012 - (Source+Binary) fixed some bugs, added some logging, and hardcoded difference to 2 instead of 3

SV_CONFIG (Add this to your Addon/sv_config file)
Code:
[TeamBalancer] TB_Difference=1 // Allowed difference between 1-9 (Suggested: 1 or 2) TB_Action=1 // 1=Force re-balance 2=Just warn! (be sure to set notify to 2!) TB_Notify=2 // 0=No notifications 1=Only if forcing re-balance 2=All notififications (suggested: either 1 or 2)

Please +Rep. [Image: postbit_reputation.gif] me, if you enjoy using this Plugin / Source!
Download Plugin here! (Click to View)
Please +Rep. [Image: postbit_reputation.gif] me, if you enjoy using this Plugin / Source!

*Try before install?*
Server (info) (Click to View)
   


Ive added comments to the source so you can see what it does Smile

Source
Code v1.9 (Click to View)
Credits
Please +Rep. [Image: postbit_reputation.gif] me, if you enjoy using this Plugin / Source!
Download Plugin here! (Click to View)
Please +Rep. [Image: postbit_reputation.gif] me, if you enjoy using this Plugin / Source!
Had a life, Got a modem..

#2
Try
Code:
ServerCommand("set scr_teambalance \"1\"");
on OnMapChange()

I suggest to use ThreadPool instead of Thread.
[Image: azuw.jpg]

#3
uh that actually works? because ive tried setting that in server config when i started hosting the servers, and it didnt do shit Tongue

You've also said that yourselve Tongue
http://www.itsmods.com/forum/Thread-Rele...3#pid64533
Had a life, Got a modem..

#4
(03-19-2012, 10:44)pieter Wrote: uh that actually works? because ive tried setting that in server config when i started hosting the servers, and it didnt do shit Tongue

You've also said that yourselve Tongue
http://www.itsmods.com/forum/Thread-Rele...3#pid64533

You need to use the set. You need to initialize the dvar first, IW removed it from the exe but the gsc is still checking the dvar.
[Image: azuw.jpg]

#5
**deletefunction isnt working so ill just edit out the content instead

#6
updated source and download thanks for the help zx
Had a life, Got a modem..

#7
hi
added your plugin but did not load.
log file does not show it loaded like all the other plugins.


[RBC] Choobie

Ratbag Clan


#8
what OS are you running?
What other plugins are you running? Smile

i'll be updating this soon asswell since ive learned some more things Smile
Had a life, Got a modem..

#9
hi the plugin works but it needs to be a difference of 4 players, e.g 3-1 it says the team is balanced, 4-0 it says is un-balanced, can you please fix this? also can you not set it so it checks at the end of every round ?

#10
Ive set it to 2 but need to test it before releasing:-)

Runs on the dz server in my signature
Had a life, Got a modem..



Possibly Related Threads…
Thread Author Replies Views Last Post
  Call of Duty loser calls in SWAT team hoax on kid who beat him RaZ 3 6,467 04-24-2014, 19:31
Last Post: Casper
Question Help Team DAMAGE offhand E-losev 0 3,368 09-17-2013, 12:03
Last Post: E-losev
  Help choose 2 random players?(1 each team) 26hz 6 6,280 09-12-2013, 17:32
Last Post: Yamato
  Name Team CheGuevara 1 4,341 06-01-2013, 14:15
Last Post: Yamato
  [Release] Team Customizer iPaddie 35 36,375 04-14-2013, 12:34
Last Post: Nero Z zero
  Team struct Deviler86 6 7,670 04-10-2013, 15:23
Last Post: x1412
  Sniper rifles bullet's spread & Preventing joining to a team lammv 11 10,280 03-15-2013, 12:53
Last Post: lammv
  Sending a plaeyr to axis or allies team lammv 0 2,864 01-26-2013, 18:59
Last Post: lammv
  [Request] Team change by admin command. Dumas 10 11,382 11-29-2012, 21:38
Last Post: 99IRock
Question Help MW3 infected team help koro35 12 12,362 11-23-2012, 07:45
Last Post: 99IRock

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.