Raised This Month: $12 Target: $400
 3% 

[L4D2] Digestion (1.2)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Oshroth
Senior Member
Join Date: Dec 2009
Plugin ID:
1552
Plugin Version:
1.2
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Infected get health back for doing damage to Survivors
    Old 03-25-2010 , 02:33   [L4D2] Digestion (1.2)
    Reply With Quote #1

    About:
    Digestion rewards infected for attacking survivors by giving them health back for damage dealt. Cvar to control how much health infected get back. Infected can become overhealed. Infected can get bonus health for killing/incapping survivors.

    Cvars:
    sm_digestion_version - Plugin Version

    sm_digestion_hunter_heal - (default 0.5) Amount of damage converted to health. 0.1 is 10%, 0.5 is 50%, 1.0 is 100%, etc.
    sm_digestion_hunter_healmaxhp - (default 3x normal max HP) Hunter max HP
    sm_digestion_hunter_incap - (default 50% normal max HP) How much bonus health Hunters get for incapping a survivor.
    sm_digestion_hunter_kill - (default 100% normal max HP) How much bonus health Hunters get for killing a survivor.
    sm_digestion_hunter_enable - (default 1) Enable Hunter Digestion

    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


    Changelog:
    0.1 - 14 views
    - Initial version
    1.0 - 22 views
    - Fixed out of bounds healing where a player get so much health they go to low health
    1.0.5 - 9 views
    - Fixed trying to get world entity's health
    1.1 - 89 views
    - Fixed other world entity bugs
    - Added player checks
    - Added Incap/Kill bonus health for infected
    1.2
    - Added individual cvars for all special infected
    - Changed bonus hp chat messages to hint messages

    To Do:
    Currently taking feature requests

    Install
    Place l4d2_digestion.smx in sourcemod/plugins and delete plugin.l4d2_digestion.cfg in cfg/sourcemod.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_digestion.sp - 3490 views - 13.8 KB)
    __________________

    Last edited by Oshroth; 04-17-2010 at 10:10. Reason: Plugin Update
    Oshroth is offline
    quang20082008
    Member
    Join Date: Mar 2010
    Old 03-25-2010 , 12:06   Re: [L4D2] Digestion 1.0
    Reply With Quote #2

    Cool Plugins , Work great ! Thanks.
    quang20082008 is offline
    Daewa
    Member
    Join Date: Oct 2009
    Old 03-25-2010 , 16:34   Re: [L4D2] Digestion 1.0
    Reply With Quote #3

    Ahaha nice plugin name
    Daewa is offline
    Oshroth
    Senior Member
    Join Date: Dec 2009
    Old 03-25-2010 , 22:46   Re: [L4D2] Digestion 1.0
    Reply With Quote #4

    I actually got the idea from an online game called Urban Dead. One of the zombie skills is Digestion which heals you the amount of damage that you do to other players.
    Although when I was testing it someone mentioned that it was like a Vampire mod.
    __________________
    Oshroth is offline
    Acecombat2
    Senior Member
    Join Date: Nov 2009
    Old 03-26-2010 , 07:40   Re: [L4D2] Digestion 1.0
    Reply With Quote #5

    err is this affected to tank also? if it does i will say " Invincible Tank! F.T.W" << nvm that i saw a wrong word to comprehend "Infected means normal zombies"

    sorry...
    __________________
    I'm Noob So Please Don't Criticise me (Fail In Engglish)

    Last edited by Acecombat2; 03-26-2010 at 07:42. Reason: Wrong Word to type....
    Acecombat2 is offline
    Oshroth
    Senior Member
    Join Date: Dec 2009
    Old 03-26-2010 , 12:29   Re: [L4D2] Digestion 1.0
    Reply With Quote #6

    Quote:
    Originally Posted by Acecombat2 View Post
    err is this affected to tank also? if it does i will say " Invincible Tank! F.T.W"
    The health recovered from damage is fairly small compared to how much damage the survivors do to the tank at the same time.

    The plugin is more for those infected that managed to get a survivor isolated where they can incap and kill them without getting shot at. The health they get should be enough to cover any damage that took getting the person in the first place.

    The plugin has basically no limit on the max health for infected but to get any significant amount of health, you'll need to set the heal multiplier really high (I was messing around with a 50x heal modifier which gave the tank about 1000 HP for each punch).
    __________________
    Oshroth is offline
    Acecombat2
    Senior Member
    Join Date: Nov 2009
    Old 03-26-2010 , 12:34   Re: [L4D2] Digestion 1.0
    Reply With Quote #7

    ah i see..... now... Your plugin definitely has something spamming in console *1.3.0"i get the errors here tomorrow

    Edit:
    [SM] To access your backpack, type !pack in chat.
    L 03/27/2010 - 061:57: [SM] Native "GetClientHealth" reported: Client index 0 is invalid
    L 03/27/2010 - 061:57: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
    L 03/27/2010 - 061:57: [SM] [0] Line 36, l4d2_digestion.sp::Event_PlayerHurt()
    L 03/27/2010 - 061:58: [SM] Native "GetClientHealth" reported: Client index 0 is invalid
    L 03/27/2010 - 061:58: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
    L 03/27/2010 - 061:58: [SM] [0] Line 36, l4d2_digestion.sp::Event_PlayerHurt()
    L 03/27/2010 - 061:58: [SM] Native "GetClientHealth" reported: Client index 0 is invalid
    L 03/27/2010 - 061:58: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
    L 03/27/2010 - 061:58: [SM] [0] Line 36, l4d2_digestion.sp::Event_PlayerHurt()
    L 03/27/2010 - 061:59: [SM] Native "GetClientHealth" reported: Client index 0 is invalid
    L 03/27/2010 - 061:59: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
    L 03/27/2010 - 061:59: [SM] [0] Line 36, l4d2_digestion.sp::Event_PlayerHurt()
    [SM] Type !usepoints to use your item points.
    T
    __________________
    I'm Noob So Please Don't Criticise me (Fail In Engglish)

    Last edited by Acecombat2; 03-26-2010 at 18:34.
    Acecombat2 is offline
    Oshroth
    Senior Member
    Join Date: Dec 2009
    Old 03-26-2010 , 22:19   Re: [L4D2] Digestion 1.0
    Reply With Quote #8

    Quote:
    Originally Posted by Acecombat2 View Post
    L 03/27/2010 - 061:57: [SM] Native "GetClientHealth" reported: Client index 0 is invalid
    L 03/27/2010 - 061:57: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
    L 03/27/2010 - 061:57: [SM] [0] Line 36, l4d2_digestion.sp::Event_PlayerHurt()
    Oops I try to get the client's health before I check if they are a real client(i.e. the error is caused because I'm checking the world entity's health, which is not a good thing to do)
    Fixed it now.
    __________________
    Oshroth is offline
    Acecombat2
    Senior Member
    Join Date: Nov 2009
    Old 03-27-2010 , 07:25   Re: [L4D2] Digestion 1.0.5
    Reply With Quote #9

    Rolf? Still getting this
    L 03/27/2010 - 19:25:25: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
    L 03/27/2010 - 19:25:25: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
    L 03/27/2010 - 19:25:25: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
    Colonel Ace unpaused the game
    Colonel Ace paused the game
    L 03/27/2010 - 19:25:26: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
    L 03/27/2010 - 19:25:26: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
    L 03/27/2010 - 19:25:26: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
    L 03/27/2010 - 19:25:26: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
    L 03/27/2010 - 19:25:26: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
    L 03/27/2010 - 19:25:26: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
    Colonel Ace unpaused the game
    Colonel Ace unpaused the game
    L 03/27/2010 - 19:25:29: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
    L 03/27/2010 - 19:25:29: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
    L 03/27/2010 - 19:25:29: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
    L 03/27/2010 - 19:25:29: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
    L 03/27/2010 - 19:25:29: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
    L 03/27/2010 - 19:25:29: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
    L 03/27/2010 - 19:25:29: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
    L 03/27/2010 - 19:25:29: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
    L 03/27/2010 - 19:25:29: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
    Colonel Ace paused the game
    L 03/27/2010 - 19:251: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
    L 03/27/2010 - 19:251: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
    L 03/27/2010 - 19:251: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
    L 03/27/2010 - 19:252: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
    L 03/27/2010 - 19:252: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
    L 03/27/2010 - 19:252: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
    L 03/27/2010 - 19:253: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
    L 03/27/2010 - 19:253: [SM] Displaying call stack trace for plugin "l4d2_digestion.smx":
    L 03/27/2010 - 19:253: [SM] [0] Line 39, l4d2_digestion.sp::Event_PlayerHurt()
    __________________
    I'm Noob So Please Don't Criticise me (Fail In Engglish)
    Acecombat2 is offline
    Oshroth
    Senior Member
    Join Date: Dec 2009
    Old 03-27-2010 , 11:50   Re: [L4D2] Digestion 1.0.5
    Reply With Quote #10

    I fixed that error and added a few checks to hopefully prevent other errors as well as adding new features.
    __________________
    Oshroth 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 08:40.


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