Raised This Month: $252 Target: $400
 63% 

[L4D & L4D2] Regenerative Healing (1.7) [10-May-2020]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6754
Plugin Version:
1.7
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Regenerates main health over time after using Adrenaline or Pain Pills.
    Old 10-10-2019 , 14:05   [L4D & L4D2] Regenerative Healing (1.7) [10-May-2020]
    Reply With Quote #1

    Related Plugins:

    About:
    • Regenerates main health over time after using Adrenaline, Pain Pills or First Aid.
    • Highly customisable, how much health, how fast, if temp health should be removed or replaced etc.
    • Option to always regenerate main or temporary health.


    Thanks:
    • Iizuka07 - For the request.


    CVars:

    Saved to l4d_healing.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d_healing_allow "1"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d_healing_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d_healing_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d_healing_modes_tog "0"

    // 0.0=Off. After taking damage wait this long before regenerating health again.
    l4d_healing_damage "0.0"

    // How much health to apply while the effect is active.
    l4d_healing_health "2"

    // Maximum player health to prevent over-healing.
    l4d_healing_max "100"

    // Heal when their movement speed is slower than this. 0.0=Off. 76=Crouched. 86=Walking. 250=Running.
    l4d_healing_moving "0.0"

    // Maximum health Adrenaline can regenerate (L4D2 only).
    l4d_healing_regen_adren "50.0"

    // Maximum health First Aid can regenerate.
    l4d_healing_regen_first "100.0"

    // Maximum health Pain Pills can regenerate.
    l4d_healing_regen_pills "50.0"

    // 0=Items regen main health. Regen with temp health: 1=Adrenaline (L4D2 only), 2=Pain Pills, 4=First Aid. 7=All. Add numbers together.
    l4d_healing_regen_type "0"

    // Survivors always regenerate health. 0=Off. 1=Main health. 2=Temp health. 3=Main health and replace temp while healing.
    l4d_healing_regenerate "0"

    // When allowed item types are used: 1=Remove health applied. 2=Replace temp health when healing with main health. 3=Both.
    l4d_healing_temp "3"

    // How often to heal the player.
    l4d_healing_time "0.5"

    // Which item to affect. 0=None, 1=Adrenaline (L4D2 only), 2=Pain Pills, 4=First Aid. 7=All. Add numbers together.
    l4d_healing_type "3"

    // Healing plugin version
    l4d_healing_version 

    Changes:
    Code:
    1.7 (10-May-2020)
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
        - Various changes to tidy up code.
    
    1.6 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.5 (06-Feb-2019)
        - Fixed incorrect cvar change hook breaking "l4d_healing_moving" in L4D1. Thanks to "Dragokas" for reporting.
    
    1.4 (28-Oct-2019)
        - Optimized the way cvars are read to use less CPU cycles.
    
    1.3 (23-Oct-2019)
        - Fixed affecting temporary health while incapacitated.
    
    1.2 (14-Oct-2019)
        - Added cvar "l4d_healing_damage" to temporarily block regenerating health when taking damage.
        - Added cvar "l4d_healing_regen_type" to set which items heal main or temp health.
        - Added cvar "l4d_healing_regenerate" to always regenerate main or temporary health.
        - Changed cvar "l4d_healing_temp" to control removing temp health. Recommended value "1, last version was "0".
        - Changed cvar "l4d_healing_type" to disable regenerating health from items.
    
    1.1 (12-Oct-2019)
        - Added feature to regenerate health from First Aid Kits.
        - Added cvar "l4d_healing_regen_first" to set First Aid health.
        - Changed cvar "l4d_healing_type" to include First Aid.
    
    1.0 (10-Oct-2019)
        - Initial release.

    Installation:
    1. Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.

    Updating from 1.1 or older:
    • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_healing.sp - 320 views - 20.4 KB)
    __________________

    Last edited by Silvers; 05-10-2020 at 07:05.
    Silvers is offline
    lg_
    Junior Member
    Join Date: Oct 2019
    Old 10-11-2019 , 09:32   Re: [L4D & L4D2] Regenerative Healing (1.0) [10-Oct-2019]
    Reply With Quote #2

    could you can make the First aid kit plugin too?

    let it used could have time slowly increase health
    lg_ is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 10-11-2019 , 23:21   Re: [L4D & L4D2] Regenerative Healing (1.1) [12-Oct-2019]
    Reply With Quote #3

    Done.
    __________________
    Silvers is offline
    lg_
    Junior Member
    Join Date: Oct 2019
    Old 10-12-2019 , 01:15   Re: [L4D & L4D2] Regenerative Healing (1.1) [12-Oct-2019]
    Reply With Quote #4

    you make it ! very funny
    lg_ is offline
    Iizuka07
    Member
    Join Date: Aug 2018
    Old 10-12-2019 , 02:10   Re: [L4D & L4D2] Regenerative Healing (1.1) [12-Oct-2019]
    Reply With Quote #5

    Now this is epic
    __________________
    死が待っている
    Iizuka07 is offline
    lg_
    Junior Member
    Join Date: Oct 2019
    Old 10-12-2019 , 04:17   Re: [L4D & L4D2] Regenerative Healing (1.1) [12-Oct-2019]
    Reply With Quote #6

    sliver,in game sometime when give the pill to another

    but the distance seem impossible but value did it

    the distance which give pills to another could be modify?

    i think it should drop when too long distance

    Last edited by lg_; 10-12-2019 at 04:19.
    lg_ is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine
    Old 10-12-2019 , 16:07   Re: [L4D & L4D2] Regenerative Healing (1.1) [12-Oct-2019]
    Reply With Quote #7

    Feature request:

    Can you add, please:

    l4d_healing_regen_always "1" - always regen hp (no need to use medkit etc.)

    l4d_healing_damage_penalty_time - if you receive a damage, delay regen by this amount of time

    Thanks.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
    [My plugins] [My tools] [GitHub] [Articles]
    Dragokas is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 10-14-2019 , 14:07   Re: [L4D & L4D2] Regenerative Healing (1.2) [14-Oct-2019]
    Reply With Quote #8

    Quote:
    Originally Posted by Dragokas View Post
    Feature request:
    Done.


    Quote:
    1.2 (14-Oct-2019)
    - Added cvar "l4d_healing_damage" to temporarily block regenerating health when taking damage.
    - Added cvar "l4d_healing_regen_type" to set which items heal main or temp health.
    - Added cvar "l4d_healing_regenerate" to always regenerate main or temporary health.
    - Changed cvar "l4d_healing_temp" to control removing temp health. Recommended value "1, last version was "0".
    - Changed cvar "l4d_healing_type" to disable regenerating health from items.
    The last version set "l4d_healing_temp" to "0". For the same functionality in this version you must set the value to "1".
    __________________
    Silvers is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine
    Old 10-14-2019 , 16:55   Re: [L4D & L4D2] Regenerative Healing (1.2) [14-Oct-2019]
    Reply With Quote #9

    Nice, thank you a much.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch)
    [My plugins] [My tools] [GitHub] [Articles]
    Dragokas is offline
    Silvers
    AlliedModders Donor
    Join Date: Aug 2010
    Location: SpaceX
    Old 10-28-2019 , 09:25   Re: [L4D & L4D2] Regenerative Healing (1.4) [28-Oct-2019]
    Reply With Quote #10

    Quote:
    1.4 (28-Oct-2019)
    - Optimized the way cvars are read to use less CPU cycles.
    __________________
    Silvers 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 14:17.


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