rn
rnThis Plugin is for Day of Defeat ONLY!
rn
rnThis is a very effective (maybe even the most effective)
rnAutoTeamBlancer for Day of Defeat! Admins basically don't
rnhave to care about even (by number of players!) teams
rnanymore as it's all handled by the plugin.
rnFurthermore there's a bunch of nice features for team
rnmanagement included.
rn
rnFEATURES:
rn
rnAutoTeamBalancer:
rn- team checking independent from scoreboard
rn(sometimes DoD shows players in a team which
rnjust started to connect to the server)
rn- if the axis and allied team are even, a new player can
rnchoose any of both.
rn- if axis team has 1 player more than allied team, new player
rncan only join the allied team and vice versa.
rn- if the teams are even players can't switch teams
rn(don't we all hate those "winning-team-joiners?)
rn- "Auto-Assign" obeys locked teams
rn- new players that chose a locked team can automatically
rnbe assigned to the unlocked team
rn- the team "spectators" can be locked by default
rn- if a player leaves, the teams are checked and the next killed
rnplayer of the team with more players will be switched over
rnto balance the teams.
rn- admins can still manually switch players when the teams are uneven.
rn- ability to manually start a team check/balance after moving players
rn- admins can switch teams and join spectators
rn- admis are not auto-switched to balance the teams
rn(if dod_tm_adminimmunity is set to 1)
rn- if teams are even and an admin switches and makes the teams uneven,
rnanother non-admin player will automatically be switched to balance
rnagain.
rn- bots can be ignored, so only human players are counted/balanced
rn
rnAdditional Features:
rn- bots can completely be excluded from all actions
rn- no death when switching teams
rn- teams can be locked (Axis OR Allies) & Specatators
rn- admins can slay a team whole team
rn- teams can be swapped
rn- admins and public players can be devided into teams
rn- players can be switched independent from balancing
rnand can be locked/unlocked to/from teams
rn- teams can completely be kicked
rn- admins are immune to all (but the swapteam) command(s).
rn
rn
//rn// USAGE:rn// ======rn//rn//rn// CVARs:rn// ------rn//rn// dod_teammanager_autobalance <1/0> = enable/disable automatic balancingrn//rn// dod_teammanager_playerdiff= sets amount of players that a teamrn// can have more than the other beforern// the plugin balances the teams!rn// (default is 1, so the plugin balancesrn// once there are 2 players difference)rn//rn// dod_teammanager_adminimmunity <1/0> = enable/disable admins' immunityrn// from being switched by AutoTeamBalancingrn//rn// dod_teammanager_ignorebots <1/0> = enable/disable excluding bots fromrn// all actionsrn//rn// dod_teammanager_autoteamjoin <1/0> = enable/disable auto assigning newrn// players to the smaller teamrn//rn// dod_teammanager_nochangedeath <1/0> = enable/disable "soft" killing ofrn// players that swith teamrn// (deaths won't be increased!)rn//rn// dod_teammanager_spectatorlock <1/0> = lock/unlock Spectators by defaultrn//rn// dod_teammanager_teamslayfx <1/0> = enable/disable special effectsrn// for teamslay (fire explosion)rn//rn//rn// ADMIN COMMANDs:rn// ---------------rn//rn// amx_teamlock = lock/unlock specified teamrn//rn// amx_axis = switch player to axisrn//rn// amx_allies = switch player to alliesrn//rn// amx_spec = switch player to specrn//rn// amx_lock = lock/unlock player to/fromrn// his current teamrn//rn// amx_slayteam = slay specified teamrn// (admins stay alive!)rn//rn// amx_adminteam = switch all admins to specifiedrn// team and all public players torn// the opposite team.rn// (admin team will be auto-locked)rn//rn// amx_swapteams = switch axis to allies and vice versarn// (including admins!)rn//rn// amx_kickteam = kick all players of specified teamrn// (admins excluded!)rn//rn// amx_balanceteams = remove team locks and balancern//
rn
rn
// CHANGELOG:rn// ==========rn//rn// - 25.11.2004 Version 0.5betarn// Initial Releasern//rn// - 27.11.2004 Version 0.6betarn// added features:rn// - slay/respawn teamsrn// - swap teamsrn// - kick teamsrn// - switch players with optionrn// to lock themrn// - all admins to one team,rn// all public players to the otherrn// and lock the admin teamrn// generic changes:rn// - DoDx module is required nowrn// - name changed to "DoD TeamManager"rn//rn// - 29.11.2004 Version 0.7betarn// added feature:rn// - players don't get their deathsrn// increased anymore when they switchrn// teams as they don't really die beforern// they change team.rn// bug fixes:rn// - kickteam is working nowrn// - autoswitching of players shouldrn// work fine as well nowrn// generic changes:rn// - changed team "spectators" to "spec"rn// as it's faster to type in yourrn// commands.rn// - renamed command "amx_checkteams"rn// to "amx_balanceteams" and changedrn// the way it works.rn// it now removes all locks from teamsrn// and balances them.rn// player specific locks stay active!rn//rn// - 01.12.2004 Version 0.8betarn// added feature:rn// - new players can automatically be sentrn// to the unlocked team if they chose arn// locked team.rn// (new cvar: dod_tm_autojointeam <1/0>)rn// bug fixes:rn// - optimized swapteams and adminteam features,rn// this should prevent the server from crashingrn// when there are a lot of players as the processingrn// load was decreased by 50%rn// - fixed minor bugs with "Auto-Assign" handlingrn//rn// - 08.12.2004 Version 0.85betarn// - players can't be switched to even thern// teams two times in a row anymore.rn//rn// - 12.12.2004 Version 0.90betarn// - optimized the swap teams feature againrn// - fixed some minor bugsrn//rn// - 13.07.2005 Version 0.91betarn// just a little update:rn// - added cvar "dod_tm_autoteambalance" to enable/disablern// automatic team balancing rn//rn// - 08.08.2005 Version 0.95betarn// * major upgrades:rn// - bots can be excluded from all actionsrn// - added special effects for slayteam commandrn// - simplified/optimized all commands (review them!)rn// - fixed bugs in slayteam commandsrn// - added/changed cvars (review them!)rn//rn// - 17.08.2005 Version 0.95beta2rn// just a little update:rn// - added cvar "dod_tm_playerdiff" with what you canrn// specify the amount of players that one team can havern// more than the other before the plugin auto balancesrn// (default is 1 player difference, so plugin balancesrn// if one team has 2 players more)rn// NOTE: this only applies for the auto balancer, so don'trn// that players can still get on a team with morern// players!rn//rn// - 22.04.2006 Version 1.0rn// ( Thx goes to cadav0r )rn// just little update:rn// - added mutlilanguage supportrn// - added admin show acitvityrn// - fixed adressee messagern//rn// - 17.06.2007 Version 1.1 BETArn// - optimized player-per-team calculationrn// now using "dod_client_changeteam" to determinern// the number of players per teamrn// - now only dead players will be switched torn// balance uneven teams with using "client_death"rn// to check the teamsrn// - now using "get_pcvar_num" instead of the oldrn// "get_cvar_num"rn// - minor code optimizationsrn//rn// - 19.06.2007 Version 1.2rn// - first of all BIG thanks to diamond-optic for hisrn// great help getting into scripting again a bit better!rn// - changed from "dod_client_changeteam" to hookingrn// the "PTeam"-Message again as bots weren't countedrn// - optimized switching dead players with adding 0.1secondrn// delay, so the game doesn't count a normal kill as teamkillrn// - added complete recalculation of players on "dod_client_spawn"rn// so the calculation cannot be messed up anymore with playersrn// disconnecting without "client_disconnect" being calledrn// - added new cvar "dod_tm_adminimmunity" to have the abilityrn// to let the TeamManager Autobalance even switch admins torn// balance the teamsrn// - fixed command "amx_balanceteams", now the teams are balancedrn// immediately no matter if players are dead or alive.rn// - fixed some minor problems concerning botsrn// - fixed switching players to a wrong teamrn//rn// - 21.06.2007 Version 1.3rn// - once again thanks to diamond-optic for helping me out a bitrn// - added team calculation & balancing on round end in additionrn// to only switching killed players to balance.rn// - player-per-team calculation should be bullet-proof nowrn//rn// - 02.07.2007 Version 1.4rn// - added round state "Draw" to team balancing eventsrn// - renamed all cvars, please review them!rn// - added global tracking cvarrn//

