AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D/L4D2] Balancer HP Special Infected (https://forums.alliedmods.net/showthread.php?t=317476)

xZk 07-15-2019 17:26

[L4D/L4D2] Balancer HP Special Infected
 
1 Attachment(s)
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 :/

Mi.Cura 07-18-2019 15:03

Re: [L4D/L4D2] Balancer HP Special Infected
 
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"

xZk 07-18-2019 19:27

Re: [L4D/L4D2] Balancer HP Special Infected
 
Quote:

Originally Posted by login101 (Post 2659528)
...

Quote:

Originally Posted by Mi.Cura (Post 2659651)
...

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

weffer 10-01-2020 14:57

Re: [L4D/L4D2] Balancer HP Special Infected
 
Hi:


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


Quote:

Originally Posted by xZk (Post 2659237)
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 :/


xZk 10-14-2020 20:30

Re: [L4D/L4D2] Balancer HP Special Infected
 
Quote:

Originally Posted by weffer (Post 2719856)
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" 


mac_ 12-14-2020 03:38

Re: [L4D/L4D2] Balancer HP Special Infected
 
2 Attachment(s)
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

RichardHafer 03-18-2021 13:50

Re: [L4D/L4D2] Balancer HP Special Infected
 
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

vipgozmaka07 12-28-2021 11:40

Re: [L4D/L4D2] Balancer HP Special Infected
 
1 Attachment(s)
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

moschinovac 12-28-2021 12:22

Re: [L4D/L4D2] Balancer HP Special Infected
 
Quote:

Originally Posted by vipgozmaka07 (Post 2767131)
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

NoroHime 01-08-2022 16:42

Re: [L4D/L4D2] Balancer HP Special Infected
 
scalable health * scalable SI count? well this made square rise difficulty


All times are GMT -4. The time now is 12:03.

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