Plugin Info:
|
Modification:
Category:
Approver: Arkshine (91)
|
Veteran Member
Join Date: Feb 2007
Location: Tennessee
|
06-28-2011
, 11:39
Team Ratio v0.0.6
|
#1
|
Team Ratio
Version 0.0.6
by Exolent
Description:
This plugin keeps the players on both teams sorted into a specific ratio.
For example, with this plugin you can set the server to have 1 Terrorist for every 3 Counter-Terrorists, making the CT's have 3x more players.
This is useful in specific gameplays where the teams need to be in an unbalanced manner so that the gameplay balances it out.
For example, if the Terrorists are super human with more HP, then they should have half the players of Counter-Terrorists to balance it out.
Cvars:
tr_enabled 0/1 (Default: 1)
- 0=Disables the plugin
- 1=Enables the plugin
tr_ratio <factor> (Default: 3)
- <factor> is the multiplier factor to determine the ratio.
- For a 3:1 ratio, the factor would be 3.
tr_advantage 1/2 (Default: 1)
- 1=Terrorist
- 2=Counter-Terrorist
- This is the team that has the ratio factor towards them.
- If you have ratio factor for 3:1 and this is 1, then the Terrorists will have 3x more players.
tr_autojoin 0/1/2 (Default: 1)
- 0=No auto join
- 1=Only auto join if chosen team will break ratio (can choose spectator if wanted)
- 2=Auto join to proper team to keep ratio (cannot choose spectator)
- If enabled, this will force players on a proper team when they join to keep the ratio balanced.
- This will also stop players from switching to another team if it will unbalance the ratio.
tr_autobalance 0/1/2/3 (Default: 0)
- 0=Disable auto balance
- 1=Enable auto balance, move excess players to opposite team
- 2=Enable auto balance, move excess players to spectator
- 3=Enable auto balance, kick excess players
- If enabled, this will balance the teams every round start to fit the ratio.
tr_autobalance_delay <delay[,delay[,...]]> (Default: 1.0,5.0)
- If autobalance is enabled, this is the delay(s) after round starts to auto balance
- Separate multiple values by a comma
tr_autobalance_choose 0/1 (Default: 0)
- This is how the plugin chooses which players to move/kick for auto balancing.
- 0=Choose the last players in the players list (not guaranteed to be last connected players)
- 1=Choose random players from the players list
tr_immunity 0/1 (Default: 1)
- 0=Treat all players the same
- 1=Immune admins aren't affected
- If enabled, immune admins are not forced to a team when they join, nor to a new team when they switch teams.
- Immune admins are also last of the players to be switched when the teams are being balanced (yes, immune admins are switched if no other non-admins are available).
tr_immunity_flag <flag> (Default: "a")
- The admin flag that gives immunity in this plugin
Requirements:
- AMX Mod X 1.8.0 or higher
Changelog:
Version 0.0.6
- Added tr_autobalance_choose cvar
- Removed unused define and the commented debug log
Version 0.0.5
- Added tr_autobalance_delay cvar
- Fixed auto balancing
Version 0.0.4
- Fixed ratio calculation for auto balance
- Optimized sorting immunity players for auto balance
- Added value 2 for tr_autojoin
- Added values 2,3 for tr_autobalance
Version 0.0.3
- Fixed bug for choosing option 5 for team (auto select)
- Optimized sorting immunity players for auto balance
Version 0.0.2
- Added immunity for admins
- Fixed small bug for auto balance
Version 0.0.1
- Initial release
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw
I love you exolent!
|
Last edited by Exolent[jNr]; 08-10-2011 at 10:23.
Reason: Updated to v0.0.6
|
|
|
|