Raised This Month: $32 Target: $400
 8% 

[L4D/L4D2] Balancer HP Special Infected


Post New Thread Reply   
 
Thread Tools Display Modes
Author
xZk
Senior Member
Join Date: Nov 2017
Location: cl
Plugin ID:
6645
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Balances the HP of the Special Infecteds, depending on the number of Survivor players in game
    Old 07-15-2019 , 17:26   [L4D/L4D2] Balancer HP Special Infected
    Reply With Quote #1

    Intro

    Because a long time ago I needed a reliable add-on to dynamically control the health of special infecteds, now I decided to create this plugin and share it.

    This complement will try to balance the health of the special infected, depending on the number of survivor players in the game. All this through the Cvars that has by default the game, in which these will be changed before your spawn and assigned with the values obtained by checking the survivor players.

    Feature list:

    • Set default health for players default amount
    • Set limit Min Health
    • Set limit Max Health
    • Set HP to increment/decrement
    • Set percent of default HP to increment/decrement
    • Check bot players
    • Check idle players
    • Check alive players


    Cvars


    Credits
    chinagreenelvis
    dYZER
    Aya Supay


    pd: sorry for me bad english :/
    Attached Files
    File Type: sp Get Plugin or Get Source (balancer_hp.sp - 2196 views - 8.2 KB)

    Last edited by xZk; 12-22-2019 at 12:31. Reason: compatibilty sm1.9
    xZk is offline
    Mi.Cura
    Veteran Member
    Join Date: Dec 2016
    Location: Brazil
    Old 07-18-2019 , 15:03   Re: [L4D/L4D2] Balancer HP Special Infected
    Reply With Quote #2

    Great plugin, I'm going to test this.
    It would be perfect if it could include the amount of epecials and spawning time according to the amount of players.

    like this,

    // The max amount of special infected at once per 2 our 4 players
    // Default: "3"
    // Minimum: "1.000000"
    // Maximum: "28.000000"
    l4d2_limit "3"

    // The amount of special infected spawned at each spawn interval per 2 our 4 players
    // Default: "1"
    // Minimum: "1.000000"
    // Maximum: "28.000000"
    l4d2_spawn_size "6"

    // The maximum auto spawn time (seconds) for infected
    // Default: "60.0"
    // Minimum: "1.000000"
    l4d2_time_max "30.0"

    // The minimum auto spawn time (seconds) for infected
    // -
    // Default: "0.0"
    // Minimum: "0.000000"
    l4d2_time_min "5.0"
    __________________
    Mi.Cura | Modded Servers | L4D2
    https://steamcommunity.com/groups/micuramodzombie
    Mi.Cura is offline
    xZk
    Senior Member
    Join Date: Nov 2017
    Location: cl
    Old 07-18-2019 , 19:27   Re: [L4D/L4D2] Balancer HP Special Infected
    Reply With Quote #3

    Quote:
    Originally Posted by login101 View Post
    ...
    Quote:
    Originally Posted by Mi.Cura View Post
    ...
    I think you refer to the same idea xd.
    I could try to do it, but it would be another plugin, i would not like to change the objective of my plugin yet.
    For now I could only suggest these plugins:
    [L4D2] Director Settings Loader v1.0.1
    [L4D/L4D2] Infected Bots Control
    [L4D2] VScript Director Options Unlocker
    [L4D2] Director Variables
    l4d2_maxspecials
    [L4D/L4D2]Config Survivors
    xZk is offline
    weffer
    Member
    Join Date: Oct 2020
    Old 10-01-2020 , 14:57   Re: [L4D/L4D2] Balancer HP Special Infected
    Reply With Quote #4

    Hi:


    What would be the configuration to increase 1000 life per player? thanks


    Quote:
    Originally Posted by xZk View Post
    Intro

    Because a long time ago I needed a reliable add-on to dynamically control the health of special infecteds, now I decided to create this plugin and share it.

    This complement will try to balance the health of the special infected, depending on the number of survivor players in the game. All this through the Cvars that has by default the game, in which these will be changed before your spawn and assigned with the values obtained by checking the survivor players.

    Feature list:

    • Set default health for players default amount
    • Set limit Min Health
    • Set limit Max Health
    • Set HP to increment/decrement
    • Set percent of default HP to increment/decrement
    • Check bot players
    • Check idle players
    • Check alive players


    Cvars


    Credits
    chinagreenelvis
    dYZER
    Aya Supay


    pd: sorry for me bad english :/
    weffer is offline
    xZk
    Senior Member
    Join Date: Nov 2017
    Location: cl
    Old 10-14-2020 , 20:30   Re: [L4D/L4D2] Balancer HP Special Infected
    Reply With Quote #5

    Quote:
    Originally Posted by weffer View Post
    Hi:


    What would be the configuration to increase 1000 life per player? thanks
    If you want to increase 1000 life for each extra player (more than 4 player), here's a example for Tank:
    PHP Code:
    balancer_hp_players_base "4"
    balancer_hp_factor_tank "1000" 
    and if you want all players to increase 1000 hp, try this:
    PHP Code:
    balancer_hp_players_base "0"
    balancer_hp_factor_tank "1000" 
    xZk is offline
    mac_
    New Member
    Join Date: Dec 2020
    Old 12-14-2020 , 03:38   Re: [L4D/L4D2] Balancer HP Special Infected
    Reply With Quote #6

    I noticed the plugin didn't accounted for ADV / EXP difficulty Tank HP bonuses which was kind of annoying, so I did a simple edit:

    PHP Code:
    public Event_TankSpawn(Event event, const char[] namebool dontBroadcast)
    {
        if(!
    IsEnable)
            return;
            
        
    int client event.GetInt("tankid");
        if(
    IsTank(client)){
            
    // Note that, there are other things that can modify Tank's health which this plugin will end up overwriting, like VScript's "ZombieTankHealth" (Tank Run mutation uses it)
            // There might be a better way, but I don't have a good one yet - mac
            
    char difficultyname[12];
            
    GetConVarString(cvar_difficultydifficultynamesizeof difficultyname);
            if(
    StrEqual(difficultyname"Impossible"false) ) {
                
    SetPlayerHealth(clientcvar_tank_hp.IntValue 2);
            }
            else if(
    StrEqual(difficultyname"Hard"false) ) {
                
    SetPlayerHealth(clientcvar_tank_hp.IntValue + (cvar_tank_hp.IntValue 2));
            }
            else {
                
    SetPlayerHealth(clientcvar_tank_hp.IntValue);
            }    
        
    //    PrintToChatAll("\x04[DEBUG] \x05Tank \x03HP \x05is set to: \x03%d", GetEntProp(client, Prop_Send, "m_iHealth") );
        
    }

    Mimics the x1.5 / x2 Tank HP bonus for Advanced and Expert respectively, hope you don't mind

    Based off this gist: https://gist.github.com/sigsegv-mvm/...iculty-txt-L38
    Attached Files
    File Type: smx balancer_hp.smx (7.0 KB, 207 views)
    File Type: sp Get Plugin or Get Source (balancer_hp.sp - 436 views - 8.9 KB)
    mac_ is offline
    RichardHafer
    Junior Member
    Join Date: Dec 2020
    Old 03-18-2021 , 13:50   Re: [L4D/L4D2] Balancer HP Special Infected
    Reply With Quote #7

    I dont really understand this plugin. Im setting up all the cvars but sometimes my tank has 7590 HP, sometimes 8000, sometimes 7200 and ... i dont really get it. Can i maybe get a .cfg file which doubles the HP of all special infected? because i cant do it myself xd
    RichardHafer is offline
    vipgozmaka07
    New Member
    Join Date: Jan 2020
    Old 12-28-2021 , 11:40   Re: [L4D/L4D2] Balancer HP Special Infected
    Reply With Quote #8

    Hi xZk, I had try setting cvar on my server
    balancer_hp_base_tank "20000"
    balancer_hp_factor_tank "10000"
    balancer_hp_players_base "4"
    When I had 6+ players, tank must have 40000+ but it increase into 100000+ ... i dont know get it
    Attached Files
    File Type: cfg balancer_hp.cfg (6.8 KB, 217 views)
    vipgozmaka07 is offline
    moschinovac
    Member
    Join Date: Mar 2019
    Location: Vietnam
    Old 12-28-2021 , 12:22   Re: [L4D/L4D2] Balancer HP Special Infected
    Reply With Quote #9

    Quote:
    Originally Posted by vipgozmaka07 View Post
    Hi xZk, I had try setting cvar on my server
    balancer_hp_base_tank "20000"
    balancer_hp_factor_tank "10000"
    balancer_hp_players_base "4"
    When I had 6+ players, tank must have 40000+ but it increase into 100000+ ... i dont know get it
    balancer_hp_factor_tank "0.5" mean x5 base HP of Tank. You should set something like "10000" or "0.05" maybe... not sure about 0.05 but sure about 10000. Set to "10000" then
    moschinovac is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 01-08-2022 , 16:42   Re: [L4D/L4D2] Balancer HP Special Infected
    Reply With Quote #10

    scalable health * scalable SI count? well this made square rise difficulty
    __________________
    NoroHime 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 20:24.


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