View Single Post
Plugin Info:     Modification:          Category:          Approver:   Emp` (115)
pharse
Senior Member
Join Date: Jan 2008
Location: Germany, BW
Old 01-23-2008 , 18:01   [PPB] Pharse's Player Balancer
Reply With Quote #1

[PPB] Pharse's Player Balancer


Comment:
This plugin is a team balancing tool which focuses on each player instead of a whole team. Thus less frustration compared to other non-player-switching balancers and a dynamic adaptation is guaranteed. According to the motto "encouraging instead of spoiling" it supports players in the losing team and players with a bad kill-death-ratio.

I tested it on our CS1.6 server running AMXModX v1.8.0.3 and mp_autoteambalance enabled. Though I see no reason why it shouldn't be used with other player-switching plugins like PTB.


Since this plugin should get the initial damage, I recommend to put it before all other custom plugins in the plugins.ini

Installation:
  1. Download ppb.sma and put it in the following folder: addons\amxmodx\scripting
  2. Open ppb.sma with compile.exe (should be in the same folder). Alternatively drag knife_blink.sma on compile.exe
  3. Copy ppb.amxx from addons\amxmodx\scripting\compiled and paste it into addons\amxmodx\plugins
  4. Go to the following folder: addons\amxmodx\configs ; and open plugins.ini
  5. Scroll down to the end of the file and add there the following line: ppb.amxx ; save and close plugins.ini
  6. You can add your custom CVars in amxx.cfg located in addons\amxmodx\configs
  7. Restart your server or change the map.
Tested and compiled with AMX Mod X v1.8.0

Code:
/*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*

                [PPB] Pharse's Player Balancer

    Description:
        
        This plugin tries to help balancing the teams by focusing on each player.
        It changes the damage a player takes and deals depending on his/her rounds in the losing team and on the kill/death ratio.
        The players will be informed that they deal more / take less damage, however they may not know the exact values.
        
    CVARs:
        
        ppb_enable <1/0>                -- enables / disables the plugin (default: 1)
        ppb_startatround <1/2/...>     -- the round when PPB starts balancing (default: 2)
        ppb_winlead <1/2/...>             -- the amount of lost rounds in a row that a team needs to be defined as 
                                        "losing team" (default: 2)
        ppb_maxdamagemod <0.1/0.2/...>     -- damage modifier; 0.1 would result in a maximum in-/decrease of 10% (default: 0.5)
        ppb_severity <1/2/...>         -- defines the lost rounds that the losing team needs to reach 
                                        the MaxDamageMod (default: 3)
        ppb_startatkd <2/3/...>         -- PPB starts balancing the K/D ratio when kills+deaths reach this value. -1 disables
                                        this feature. NOTE: PPB sets both kills and deaths to a minimum of 1. (default: 6)
        ppb_friendlyfire <1/0>         -- enables / disables the damage effect for teammates, including the attacking
                                        player him-/herself. (default: 0)
        ppb_debug <1/0>            -- enables / disables debug mode. Debug messages are only visible for admins with
                                        the ADMIN_KICK flag. (default: 0)
    
    Changelog:
        
        1.0
            -- Initial release

*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
Current version: 1.0
Attached Files
File Type: sma Get Plugin or Get Source (ppb.sma - 4320 views - 7.4 KB)
__________________

Last edited by pharse; 07-05-2008 at 18:37. Reason: added installation notes
pharse is offline