Raised This Month: $193 Target: $400
 48% 

[PPB] Pharse's Player Balancer


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management        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 - 3036 views - 7.4 KB)
__________________

Last edited by pharse; 07-05-2008 at 18:37. Reason: added installation notes
pharse is offline
FuZ!on
Senior Member
Join Date: Aug 2007
Old 01-23-2008 , 18:38   Re: [PPB] Pharse's Player Balancer
Reply With Quote #2

Wait, so this doesn't switch players? It just give the player an advantage of more damage when shooting? Controlled by this cvar ppb_maxdamagemod
FuZ!on is offline
Send a message via AIM to FuZ!on Send a message via MSN to FuZ!on
pharse
Senior Member
Join Date: Jan 2008
Location: Germany, BW
Old 01-23-2008 , 18:46   Re: [PPB] Pharse's Player Balancer
Reply With Quote #3

Almost.

rounds in losing team --> taking less damage
bad k/d ratio --> dealing more damage

As I wrote, this plugin is supportive.
__________________
pharse is offline
FuZ!on
Senior Member
Join Date: Aug 2007
Old 01-24-2008 , 16:36   Re: [PPB] Pharse's Player Balancer
Reply With Quote #4

So if a player joined the server and joined the losing team, he would take less damage but still give the regular amount?
FuZ!on is offline
Send a message via AIM to FuZ!on Send a message via MSN to FuZ!on
Old 01-24-2008, 16:40
fxfighter
This message has been deleted by fxfighter.
pharse
Senior Member
Join Date: Jan 2008
Location: Germany, BW
Old 01-24-2008 , 17:37   Re: [PPB] Pharse's Player Balancer
Reply With Quote #5

no. The plugin counts the lost rounds for each player. So it can deal with a changing player base. This also prevents that high skilled players take down the enemy team like ten times and then join the losing team to get all the bonus (as I have seen many times before with other HP/Damage balancers).
__________________
pharse is offline
warlock
Senior Member
Join Date: Jan 2005
Old 01-27-2008 , 03:47   Re: [PPB] Pharse's Player Balancer
Reply With Quote #6

This is sure as hell very interesting.
Very nicely done.
__________________
Kind regards,
warlock
warlock is offline
ali_zkz
Member
Join Date: Jan 2006
Old 04-10-2008 , 07:58   Re: [PPB] Pharse's Player Balancer
Reply With Quote #7

ns work
ali_zkz is offline
distorsion
New Member
Join Date: Jul 2008
Old 07-05-2008 , 16:42   Re: [PPB] Pharse's Player Balancer
Reply With Quote #8

cant download
distorsion is offline
pharse
Senior Member
Join Date: Jan 2008
Location: Germany, BW
Old 07-05-2008 , 18:36   Re: [PPB] Pharse's Player Balancer
Reply With Quote #9

added installation notes (see in first post). You have to compile it with your local AMXX compiler as the web compiler doesn't comprises the hamsandwich module.
__________________
pharse is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin®
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Theme made by Freecode