AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Digestion (1.2) (https://forums.alliedmods.net/showthread.php?t=122285)

zipcore 03-31-2010 15:28

Re: [L4D2] Digestion 1.1
 
Can you pls feature this?

Cvars:


sm_digestion_hunter_heal
sm_digestion_hunter_healmaxhp
sm_digestion_hunter_incap
sm_digestion_hunter_kill
sm_digestion_hunter_enable

sm_digestion_smoker_heal
sm_digestion_smoker_healmaxhp
sm_digestion_smoker_incap
sm_digestion_smoker_kill
sm_digestion_smoker_enable

sm_digestion_boomer_heal
sm_digestion_boomer_healmaxhp
sm_digestion_boomer_incap
sm_digestion_boomer_kill
sm_digestion_boomer_enable

sm_digestion_charger_heal
sm_digestion_charger_healmaxhp
sm_digestion_charger_incap
sm_digestion_charger_kill
sm_digestion_charger_enable

sm_digestion_tank_heal
sm_digestion_tank_healmaxhp
sm_digestion_tank_incap
sm_digestion_tank_kill
sm_digestion_tank_enable

sm_digestion_spitter_heal
sm_digestion_spitter_healmaxhp
sm_digestion_spitter_incap
sm_digestion_spitter_kill
sm_digestion_spitter_enable

sm_digestion_jockey_heal
sm_digestion_jockey_maxhphp
sm_digestion_jockey_incap
sm_digestion_jockey_kill
sm_digestion_jockey_enable

sm_digestion_witch_heal
sm_digestion_witch_maxhphp
sm_digestion_witch_incap
sm_digestion_witch_kill
sm_digestion_witch_enable

Oshroth 04-04-2010 06:34

Re: [L4D2] Digestion 1.1
 
All except for the witch should be easy.

The witch ones will be hard because the witch is treated differently to the other infected, because it can't be controlled by a player, it is treated like a common infected.

zipcore 04-04-2010 12:52

Re: [L4D2] Digestion 1.1
 
Quote:

Originally Posted by Oshroth (Post 1138858)
All except for the witch should be easy.

The witch ones will be hard because the witch is treated differently to the other infected, because it can't be controlled by a player, it is treated like a common infected.

okey cancel that *itch :P

Oshroth 04-17-2010 09:30

Re: [L4D2] Digestion 1.1
 
Quote:

Originally Posted by zipcore (Post 1134737)
Can you pls feature this?

Cvars:


sm_digestion_hunter_heal
sm_digestion_hunter_healmaxhp
sm_digestion_hunter_incap
sm_digestion_hunter_kill
sm_digestion_hunter_enable

sm_digestion_smoker_heal
sm_digestion_smoker_healmaxhp
sm_digestion_smoker_incap
sm_digestion_smoker_kill
sm_digestion_smoker_enable

sm_digestion_boomer_heal
sm_digestion_boomer_healmaxhp
sm_digestion_boomer_incap
sm_digestion_boomer_kill
sm_digestion_boomer_enable

sm_digestion_charger_heal
sm_digestion_charger_healmaxhp
sm_digestion_charger_incap
sm_digestion_charger_kill
sm_digestion_charger_enable

sm_digestion_tank_heal
sm_digestion_tank_healmaxhp
sm_digestion_tank_incap
sm_digestion_tank_kill
sm_digestion_tank_enable

sm_digestion_spitter_heal
sm_digestion_spitter_healmaxhp
sm_digestion_spitter_incap
sm_digestion_spitter_kill
sm_digestion_spitter_enable

sm_digestion_jockey_heal
sm_digestion_jockey_maxhphp
sm_digestion_jockey_incap
sm_digestion_jockey_kill
sm_digestion_jockey_enable

sm_digestion_witch_heal
sm_digestion_witch_maxhphp
sm_digestion_witch_incap
sm_digestion_witch_kill
sm_digestion_witch_enable

I've added them all in the latest version

Marchello 05-06-2010 03:48

Re: [L4D2] Digestion (1.2)
 
please do a cvar for disabling announces (hint messages, who gets health for incapacitating a player) or printing only to admins.

Newf 05-06-2010 14:46

Re: [L4D2] Digestion (1.2)
 
pretty good idea. might have to try it.

only issue i see though is people picking on bot survivors to boost their health first. would it be possible to set up so that only human controller infected are able to benefit from it? and only able to do so by injuring human controlled players?

Ulrich 05-16-2010 01:23

Re: [L4D2] Digestion (1.2)
 
Quote:

Originally Posted by Marchello (Post 1172285)
please do a cvar for disabling announces (hint messages, who gets health for incapacitating a player) or printing only to admins.

Yeah, I'd like that feature, too.

paul92 03-26-2011 08:55

Re: [L4D2] Digestion (1.2)
 
Quote:

Originally Posted by Ulrich (Post 1181721)
Yeah, I'd like that feature, too.

Is this abandoned?
If so, can someone add that cvar?
I hate that hint message! :(

paul92 03-26-2011 16:21

Re: [L4D2] Digestion (1.2)
 
There are some bug i noticed:

1) When you return ghost after your spawn (when you're far from survivors) you lose your extra hp. When i returned ghost for instance (as a spitter) to ghost, my health returned from 289 to 100!

2) Boomer doesn't gain HP except if he directly attack...
You should make it that he gain 0.5 the damage that common zombies do to boomed survivors! Otherwise Boomer will never gain health!

Hope someone will take care of this great plugin... Because TS isn't going to do it! :(

paul92 04-19-2014 14:27

Re: [L4D2] Digestion (1.2)
 
Reporting some error that spams my logs... Any idea on how to fix it?
Code:

L 04/19/2014 - 01:46:03: [SM] Native "GetClientTeam" reported: Client 6 is not in game
L 04/19/2014 - 01:46:03: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
L 04/19/2014 - 01:46:03: [SM]  [0]  Line 189, C:\Program Files (x86)\Steam\steamapps\common\left 4 dead 2\left4dead2\addons\sourcemod\scripting\l4d2_digestion.sp::Event_PlayerDeath()

Code:

public Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast) {
    new attacker = GetClientOfUserId(GetEventInt(event, "attacker"));
    new target = GetClientOfUserId(GetEventInt(event, "userid"));
    new bonus;
    new maxHP;
    new enable;
    new oldHealth;
    new newHealth;
    if(attacker <= 0 || target <= 0) {
        return Plugin_Continue;
    }
    if(!IsClientInGame(attacker) || !IsPlayerAlive(attacker)) {
        return Plugin_Continue;
    }
   
    if((GetClientTeam(target) == 2) && (GetClientTeam(attacker) == 3)) {
        new class = GetEntProp(attacker, Prop_Send, "m_zombieClass");
       
        switch (class) 
        {   
            case ZOMBIECLASS_BOOMER:
            {
                bonus = GetConVarInt(FindConVar("sm_digestion_boomer_kill"));
                maxHP = GetConVarInt(FindConVar("sm_digestion_boomer_healmaxhp"));
                enable = GetConVarBool(FindConVar("sm_digestion_boomer_enable"));
            }
           
            case ZOMBIECLASS_CHARGER:
            {
                bonus = GetConVarInt(FindConVar("sm_digestion_charger_kill"));
                maxHP = GetConVarInt(FindConVar("sm_digestion_charger_healmaxhp"));
                enable = GetConVarBool(FindConVar("sm_digestion_charger_enable"));
            }
           
            case ZOMBIECLASS_JOCKEY:
            {
                bonus = GetConVarInt(FindConVar("sm_digestion_jockey_kill"));
                maxHP = GetConVarInt(FindConVar("sm_digestion_jockey_healmaxhp"));
                enable = GetConVarBool(FindConVar("sm_digestion_jockey_enable"));
            }
            case ZOMBIECLASS_HUNTER:
            {
                bonus = GetConVarInt(FindConVar("sm_digestion_hunter_kill"));
                maxHP = GetConVarInt(FindConVar("sm_digestion_hunter_healmaxhp"));
                enable = GetConVarBool(FindConVar("sm_digestion_hunter_enable"));
            }
           
            case ZOMBIECLASS_SMOKER:
            {
                bonus = GetConVarInt(FindConVar("sm_digestion_smoker_kill"));
                maxHP = GetConVarInt(FindConVar("sm_digestion_smoker_healmaxhp"));
                enable = GetConVarBool(FindConVar("sm_digestion_smoker_enable"));
            }
           
            case ZOMBIECLASS_SPITTER:
            {
                bonus = GetConVarInt(FindConVar("sm_digestion_spitter_kill"));
                maxHP = GetConVarInt(FindConVar("sm_digestion_spitter_healmaxhp"));
                enable = GetConVarBool(FindConVar("sm_digestion_spitter_enable"));
            }
           
            case ZOMBIECLASS_TANK:
            {
                bonus = GetConVarInt(FindConVar("sm_digestion_tank_kill"));
                maxHP = GetConVarInt(FindConVar("sm_digestion_tank_healmaxhp"));
                enable = GetConVarBool(FindConVar("sm_digestion_tank_enable"));
            }
        }
        if(!enable || bonus <= 0) {
            return Plugin_Continue;
        }
        oldHealth = GetClientHealth(attacker);
        newHealth = bonus + oldHealth;
        //PrintHintTextToAll("%N got %d health for killing %N.", attacker, bonus, target);
        if(newHealth > maxHP) {
            newHealth = maxHP;
        }
        if(newHealth > 65355) {
            newHealth = 65355;
        }
        SetEntityHealth(attacker, newHealth);
    }
    return Plugin_Continue;
}

After some time that this errors get added on my log, the game crashes.

Can someone quickfix it?


All times are GMT -4. The time now is 00:38.

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