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

[L4D2] Automatic Real(Main) Health Regeneration v1.13, with 2 Addons【2024-03-22】


Post New Thread Reply   
 
Thread Tools Display Modes
Author
little_froy
Senior Member
Join Date: May 2021
Plugin ID:
8555
Plugin Version:
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 10-01-2023 , 09:57   [L4D2] Automatic Real(Main) Health Regeneration v1.13, with 2 Addons【2024-03-22】
    Reply With Quote #1

    Description

    1.Allow survivors automatically recover their real(main) health. based on [L4D2] Automatic Healing(Health Regeneration)

    Cvars
    PHP Code:
    // how many health heal once
    // -
    // Default: "1"
    // Minimum: "1.000000"
    automatic_healingr_health "1"

    // 1 = enable, 0 = disable. interrupt healing on hurt?
    // -
    // Default: "1"
    automatic_healingr_interrupt_on_hurt "1"

    // max health of healing
    // -
    // Default: "30"
    // Minimum: "2.000000"
    automatic_healingr_max "30"

    // how many real health required to start automatic healing
    // -
    // Default: "1"
    // Minimum: "1.000000"
    automatic_healingr_min "1"

    // repeat interval after healing start
    // -
    // Default: "1.0"
    // Minimum: "0.000000"
    automatic_healingr_repeat_interval "1.0"

    //  0 = disable, 1 = replace health buffer when healing
    // -
    // Default: "0"
    automatic_healingr_replace_health_buffer "0"

    // how long time need to wait after the interruption to start healing
    // -
    // Default: "5.0"
    // Minimum: "0.000000"
    automatic_healingr_wait_time "5.0" 
    Related Plugins
    Natives(for developers)
    Spoiler


    Change log
    Spoiler
    Attached Files
    File Type: inc automatic_healingr.inc (754 Bytes, 7 views)
    File Type: sp Get Plugin or Get Source (automatic_healingr.sp - 25 views - 11.2 KB)

    Last edited by little_froy; 03-22-2024 at 03:38.
    little_froy is online now
    little_froy
    Senior Member
    Join Date: May 2021
    Old 10-01-2023 , 10:57   Re: [L4D2] Automatic Real(Main) Health Regeneration v1.1【2023-10-01】
    Reply With Quote #2

    Addon 1: Interrupt Healing On Status v1.11

    Description

    1.allow interrupt healing on status.

    Cvars
    PHP Code:
    // which type of status will interrupt healing? 1 = get staggered, 2 = pinned by speical infected, 4 = falling from ledge,
    // 8 = custom sequences, 16 = getting up from defib. add numbers together
    // -
    // Default: "31"
    // Minimum: "0.000000"
    // Maximum: "31.000000"
    automatic_healingr_addon_status_enable "31"

    // load this file
    // -
    // Default: "data/automatic_healingr_addon_status_custom_sequences.cfg"
    automatic_healingr_addon_status_path "data/automatic_healingr_addon_status_custom_sequences.cfg" 
    Commands
    • sm_automatic_healingr_addon_status_reload_cus tom_sequences (admin flag "z")
      :reload config data from file.

    Change log
    Spoiler


    Configs installation
    • put automatic_healingr_addon_status_custom_sequen ces.cfg in sourcemod/data/. if you changed the file name or path, you have to edit the cvar "path" too.
    • spilte up numbers with comma. default config contains sequences of getting up and striked fly of each model. you can find models and sequences by "Left 4 Dead 2 Authoring Tools - Model Viewer".
    Attached Files
    File Type: cfg automatic_healingr_addon_status_custom_sequences.cfg (913 Bytes, 21 views)
    File Type: sp Get Plugin or Get Source (automatic_healingr_addon_status.sp - 2 views - 9.1 KB)

    Last edited by little_froy; 03-16-2024 at 06:25.
    little_froy is online now
    little_froy
    Senior Member
    Join Date: May 2021
    Old 10-01-2023 , 11:00   Re: [L4D2] Automatic Real(Main) Health Regeneration v1.1【2023-10-01】
    Reply With Quote #3

    Addon 2: Interrupt Healing On Attack v1.7

    Description

    1.allow interrupt healing on attack.

    Cvars
    PHP Code:
    // which type of attack will interrupt healing? 1 = primary attack, 2 = shove. add numbers together
    // -
    // Default: "3"
    // Minimum: "0.000000"
    // Maximum: "3.000000"
    automatic_healingr_addon_attack_enable "3" 
    Change log
    Spoiler
    Attached Files
    File Type: sp Get Plugin or Get Source (automatic_healingr_addon_attack.sp - 5 views - 6.5 KB)

    Last edited by little_froy; 02-21-2024 at 18:14.
    little_froy is online now
    kochiurun119
    BANNED
    Join Date: Sep 2014
    Location: GB
    Old 10-01-2023 , 12:55   Re: [L4D2] Automatic Real(Main) Health Regeneration v1.1, with 2 Addons【2023-10-01】
    Reply With Quote #4

    https://forums.alliedmods.net/showthread.php?p=1596827 Can you add a health recovery notification like this plugin? that's great.
    SetEntityHealth(client, hardhp+hp_add);
    PrintCenterText(client, "HP + %d = %d", hp_add, hardhp+hp_add);
    kochiurun119 is offline
    Send a message via ICQ to kochiurun119 Send a message via AIM to kochiurun119 Send a message via Yahoo to kochiurun119 Send a message via Skype™ to kochiurun119
    little_froy
    Senior Member
    Join Date: May 2021
    Old 10-01-2023 , 13:13   Re: [L4D2] Automatic Real(Main) Health Regeneration v1.1, with 2 Addons【2023-10-01】
    Reply With Quote #5

    Quote:
    Originally Posted by kochiurun119 View Post
    https://forums.alliedmods.net/showthread.php?p=1596827 Can you add a health recovery notification like this plugin? that's great.
    SetEntityHealth(client, hardhp+hp_add);
    PrintCenterText(client, "HP + %d = %d", hp_add, hardhp+hp_add);
    no planning. center text and hint text are precious, I'll leave them for other plugins.

    Last edited by little_froy; 10-01-2023 at 13:20.
    little_froy is online now
    Reply



    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 19:21.


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