AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Team Balancer by Low Frags v4.0 [+CSDM Support] (https://forums.alliedmods.net/showthread.php?t=161175)

claudiuhks 07-04-2011 05:38

CS & CZ Team Balancer by Frags v8.1 [+CS:DM/ BOTs Support]
 
2 Attachment(s)
CS & CZ Team Balancer by Frags v8.1

+CS:DM/ BOTs Support

Github

• /ClaudiuHKS/AMXXCSTeamBalancerByFragsCSDM

Gametracker

GameTracker/ servers using TBBF v8.1

Modules Used

PHP Code:

CS:DM (BALANCING THE TEAMS AT ANY TIME)     |   ORIGINAL (BALANCING ONLY DURING THE END OF THE ROUND)
--------------------------------------------|--------------------------------------------------------
REQUIRED            OPTIONAL TO HAVE        |   REQUIRED                OPTIONAL TO HAVE
--------------------------------------------|--------------------------------------------------------
CSTRIKE             FUN                     |   HAMSANDWICH             FUN
                    CSDM                    
|   FAKEMETA OR CSTRIKE     CSDM
                    FAKEMETA                
|                           CSTRIKE
                    HAMSANDWICH             
|                           FAKEMETA 

Description

This plugin helps balance the teams especially in CS:DM & Respawn mods but not limited to.
It balances the teams exactly the way you set it to.
The balances are only executed when the difference between Terrorists and Counter Terrorists or
the difference between Counter Terrorists and Terrorists is at least 2 players.
So, for example, after players disconnect from your game server and disturb (alters) the team players quantity.
It will either transfer the players having the lowest score (frags [kills]) or the highest score (frags [kills])
from a team to another in order to perform the balance in a fast and efficient way. It may also transfer
the second or the third {... and so on ...} best player. Depending on the way you set it. See the team_balancer_auto
& the team_balancer_sorting settings below.
It is a kind of mp_autoteambalance but much more powerful. It will never interact with the original game
mp_autoteambalance console variable. You can use mp_autoteambalance 1 while using this plugin.
We also suggest you use mp_limitteams > 0 (I recommend 1) and/ or mp_teamlimit > 0 (I recommend 1).
The main advantage over mp_autoteambalance is that mp_autoteambalance only balances the next round.
CS:DM has no multiple rounds in most cases.
BOTs are supported.
Alive players are never transferred in non-CS:DM game mods. This can be changed.
Both alive & dead players are transferred in CS:DM game mods.
Players can be respawned when transferred. See the settings below.
Works like a charm on non-CS:DM game servers as well.
If you need a drastic team balancer for non-CS:DM servers, see TUTB v1.0.

Console Variables (This CFG Is For Both CS:DM And Non-CS:DM Servers)

PHP Code:

team_balancer_frequency 5.0 // Team check frequency in seconds (float, for example can be 9.125)
team_balancer_bots_delay 2.5 // Ignored if 'team_balancer_bots' is 1. So, after every 'team check above (humans only)' we will 'bots check' every time. Apply seconds delay between 'humans check' and 'bots check'. To avoid chat spam & stuff. This value needs to be smaller than 'team_balancer_frequency' value (float)
team_balancer_talk_tag "[Team Balancer]" // Chat (talk) tag to use. This isn't used in 'print_center' messages
team_balancer_te_difference 1 // Maximum difference between terrorists team and counter terrorists
team_balancer_ct_difference 1 // Maximum difference between counter terrorists team and terrorists
team_balancer_admin_flag "a" // Admin flag to set admins immune. Examples: a, b, c, d (use "" to disable this feature)
team_balancer_bots 0 // Bots are taken as they were humans (1 = yes & 0 = no, so half bots T + half bots CT)
team_balancer_announce 1 // Announce the player by message if they were transferred
team_balancer_announce_type 0 // Announce type (0 = print_center, 1 = print_chat [print_talk] & 2 = print_chat [print_talk] colored)
team_balancer_announce_all 2 // Announce everyone (0 = no, 1 = yes print_chat [print_talk] & 2 = yes print_chat [print_talk] colored)
team_balancer_screen_fade 1 // Performs a screen fade effect on the player if not 0
team_balancer_sf_duration 1.0 // Screen fade duration seconds, if screen fade enabled (float)
team_balancer_sf_hold_time 0.1 // Screen fade hold time seconds, if screen fade enabled (float)
team_balancer_audio 1 // Audio alert to the transferred player
team_balancer_audio_type 0 // Audio alert type (0 = speak to transferred player ears a teleport like sound, 1 = that player emits that sound globally so players around them can still hear the sound at a lower volume depending on the distance between them [if the transferred player is dead 0 will be used instead] & 2 = like 0 but speak "YOUR NOW [ T / C T ] FORCE")
team_balancer_sf_te_r 200 // Red T
team_balancer_sf_te_g 40 // Green T
team_balancer_sf_te_b 0 // Blue T
team_balancer_sf_te_a 240 // Alpha T
team_balancer_sf_ct_r 0 // Red CT
team_balancer_sf_ct_g 40 // Green CT
team_balancer_sf_ct_b 200 // Blue CT
team_balancer_sf_ct_a 240 // Alpha CT
team_balancer_by_low_frags 1 // Transfer players having the lowest score (1) or highest score (0)
team_balancer_auto 1 // If the enemy team is better or equal (better or equal scoring [frags]) we send to them a player with low frags to perform the balance or a player with high frags otherwise
team_balancer_sorting 1 // Only works if 'team_balancer_auto' is on. If 'team_balancer_sorting' is on, players/ bots will be balanced depending on their score (frags). For example, the second or the third {... and so on ...} best player may also be considered for transfer
team_balancer_respawn 1 // Recommended in CS:DM mods but not limited to. Respawn players once transferred
team_balancer_respawn_type 1 // If 1, players are respawned by 'csdm_respawn' (CS:DM) function if that function exists in your game server. Will be respawned by 'spawn' (FUN) or 'dllfunc' (FAKEMETA) if these modules are present otherwise. If none above exist, only if the player is dead when transferred, 'cs_user_spawn' (CSTRIKE) function will be used. If 0, CS:DM available or not, 'spawn', 'dllfunc' or 'cs_user_spawn' will be used to perform the respawn (this may be good if you want them respawned T/ CT side but you are using CS:DM custom spawn points set everywhere on the map)
team_balancer_respawn_delay 0.25 // Seconds delay between the player respawn moment and the announcements and screen fade (float)
team_balancer_round_end_only 1 // If 1, balance only during round end if 'CS:DM' is disabled. If 'CS:DM' enabled and running, this setting is ignored
team_balancer_round_end_quick 1 // If 1, when balancing the teams only during round end while the 'CS:DM' extension is disabled or missing, ignore the 'team_balancer_frequency' and 'team_balancer_bots_delay' console variables and perform everything very quick
team_balancer_no_respawn 1 // Do not respawn if the 'CS:DM' extension is missing or disabled. This setting has no effect if 'CS:DM' exists and running
team_balancer_transfer_alive 1 // Also allow the transfer of alive players in game servers which are not 'CS:DM' or are 'CS:DM' but 'csdm_active' disabled 

If your game server is running `CS:DM` and is performing too many transfers
in a short period of time and you get angry try other frequency values.

Other Values

Changelog

PHP Code:

v8.1 :: More friendly with non-CS:DM servers


Ares Veteran 07-04-2011 08:41

Re: Team Balancer by Low Frags v1.0 [+csdm support]
 
Fine, but why do you switch only the lowest player? I think people are mostly disconnecting when they are in a weak team (and can not frag), so you switch a weak player in a weak team, after some rounds he will disconnect too.

After the low player switch a better player can join the better team (and he will join the better team, good players join mostly the better team). :) The server teams will be unbalanced in players skill.

Or am i wrong?

claudiuhks 07-04-2011 09:50

Re: Team Balancer by Low Frags v1.0 [+csdm support]
 
The players with low score maybe don't like to play in the team they are currently playing. So if the plugin change them team, they'll be more happy?

nisam_ja 07-05-2011 22:11

Re: Team Balancer by Low Frags v1.0 [+csdm support]
 
Quote:

Originally Posted by claudiuhks (Post 1503485)
The players with low score maybe don't like to play in the team they are currently playing. So if the plugin change them team, they'll be more happy?

that is selfexplanatory.

be happy

juan2394 07-05-2011 23:46

Re: Team Balancer by Low Frags v1.0 [+CSDM support]
 
Try adding
#happyplayers
on your code :D

Trethy 07-06-2011 06:46

Re: Team Balancer by Low Frags v1.0 [+CSDM support]
 
Nice! :)

Arkshine 10-07-2011 19:36

Re: Team Balancer by Low Frags v2.0 [+CSDM support]
 
Use pcvar. It's a requirement.

FOUTA 11-18-2011 10:15

Re: Team Balancer by Low Frags v2.0 [+CSDM support]
 
how about to check, if a team is winning by a lot like by 10, transfer the strongest player from the winning team and put him in the weak team, there will be balance then, no matter if the teams are balanced or not :D

C3NsUr3 12-01-2011 04:09

Re: Team Balancer by Low Frags v2.0 [+CSDM support]
 
Nice plugin!

kramesa 12-09-2011 19:01

Re: Team Balancer by Low Frags v2.0 [+CSDM support]
 
Its cool.


All times are GMT -4. The time now is 01:20.

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