Raised This Month: $ Target: $400
 0% 

[L4D2] Incapacitated Automatic Health Regen and Self Revive v1.2.1 【2022-05-17】


Post New Thread Reply   
 
Thread Tools Display Modes
Author
little_froy
Member
Join Date: May 2021
Plugin ID:
7733
Plugin Version:
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 07-28-2021 , 07:14   [L4D2] Incapacitated Automatic Health Regen and Self Revive v1.2.1 【2022-05-17】
    Reply With Quote #1

    Description
    • Allow survivor automatic regeneration health when been incapacitated and get self revive when health reaches the max.

    Note

    when everyone is incapacitated, the bot special infecteds will lose attack target, suggest with this plugin to fix.

    [L4D & L4D2] Target Override
    https://forums.alliedmods.net/showthread.php?p=2688165

    Cvars
    PHP Code:
    // default health when been down
    // -
    // Default: "200"
    // Minimum: "10.000000"
    incap_self_revive_down_default "200"

    // set none zero to enable harder down regen conflict wait
    // -
    // Default: "0"
    incap_self_revive_down_harder "0"

    // health point regen per second when down
    // -
    // Default: "10"
    // Minimum: "1.000000"
    incap_self_revive_down_point "10"

    // after the wait, the repeat time of regen when down
    // -
    // Default: "1.0"
    // Minimum: "0.100000"
    incap_self_revive_down_repeat "1.0"

    // after the conflict, how long need to wait to regen when down
    // -
    // Default: "1.5"
    // Minimum: "0.100000"
    incap_self_revive_down_wait "1.5"

    // default health when been ledge
    // -
    // Default: "200"
    // Minimum: "10.000000"
    incap_self_revive_ledge_default "200"

    // health point regen per second when ledge
    // -
    // Default: "10"
    // Minimum: "1.000000"
    incap_self_revive_ledge_point "10"

    // after the wait, the repeat time of regen when ledge
    // -
    // Default: "1.0"
    // Minimum: "0.100000"
    incap_self_revive_ledge_repeat "1.0"

    // the scale of health after revived from ledge
    // -
    // Default: "0.8"
    // Minimum: "0.100000"
    incap_self_revive_ledge_scale "0.8"

    // after the conflict, how long need to wait to regen when ledge
    // -
    // Default: "1.5"
    // Minimum: "0.100000"
    incap_self_revive_ledge_wait "1.5"

    related internal cvar:

    survivor_incap_health 300                      
    //incap health max.

    survivor_ledge_grab_health 300             
    //ledge health max.

    survivor_revive_health 30                      
    //how much health buffer when get revived with. 
    Change Log
    Spoiler
    Attached Files
    File Type: sp Get Plugin or Get Source (incap_self_revive.sp - 35 views - 23.6 KB)

    Last edited by little_froy; 05-17-2022 at 07:39.
    little_froy is offline
    Toranks
    Senior Member
    Join Date: Dec 2021
    Location: Spain
    Old 12-02-2021 , 08:57   Re: [L4D2] Incapacitated Automatic Health Regen and Self Revive Enhanced v4.3.0
    Reply With Quote #2

    If I pause the game, the health regeneration continues. When unpause, they recover all the life that corresponds to them for the elapsed time of pause. If you fix it, it's will be a perfect mod

    Bots do not pause regeneration when attacked. This is fine by me, as bots are clumsier than the player, but I would like it to be configurable with a separate command like incap_bot_reviveXXXX

    Last edited by Toranks; 12-02-2021 at 09:01.
    Toranks is offline
    Toranks
    Senior Member
    Join Date: Dec 2021
    Location: Spain
    Old 04-26-2022 , 18:35   Re: [L4D2] Incapacitated Automatic Health Regen and Self Revive Enhanced【unapproved】
    Reply With Quote #3

    Oh, what a pity that this mod was unapproved and deprecated. It was very useful for me because allows you to choose how much temporary health you start with when a Survivor get incapped on a ledge, including the corresponding animation. Then, survivor begins to fall down (80 HP), and gradually stands up on his own, with his own animations. It's very realistic like that and I've been playing that way for a year now.
    On the other hand, since I am not interested on normal incapped autorecovery, I have edited the code so it allows for negative values of incap_self_revive_ledge_point, which I use to customize the rate at which a survivor loses life while incapacitated. Is mandatory to use incap_self_revive_down_default "299" instead of "300" or there will be a bug. I don't know how to disable the mod during normal incapacitation due to lack of cvars and so far I haven't really looked at the code much I was already satisfied with it.

    I can post the source code if anyone is interested and the author or administrators allow it. In the meantime, I'll keep it as a little treasure.
    Toranks 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 03:36.


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