AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   [PPB] Pharse's Player Balancer (https://forums.alliedmods.net/showthread.php?t=66110)

pharse 01-23-2008 18:01

[PPB] Pharse's Player Balancer
 
1 Attachment(s)
[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

FuZ!on 01-23-2008 18:38

Re: [PPB] Pharse's Player Balancer
 
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

pharse 01-23-2008 18:46

Re: [PPB] Pharse's Player Balancer
 
Almost.

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

As I wrote, this plugin is supportive.

FuZ!on 01-24-2008 16:36

Re: [PPB] Pharse's Player Balancer
 
So if a player joined the server and joined the losing team, he would take less damage but still give the regular amount?

pharse 01-24-2008 17:37

Re: [PPB] Pharse's Player Balancer
 
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).

warlock 01-27-2008 03:47

Re: [PPB] Pharse's Player Balancer
 
This is sure as hell very interesting.
Very nicely done.

ali_zkz 04-10-2008 07:58

Re: [PPB] Pharse's Player Balancer
 
ns work

distorsion 07-05-2008 16:42

Re: [PPB] Pharse's Player Balancer
 
cant download

pharse 07-05-2008 18:36

Re: [PPB] Pharse's Player Balancer
 
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.


All times are GMT -4. The time now is 06:26.

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