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

[L4D & L4D2] Bonus Healing <fork> v1.6 [24-November-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Plugin ID:
7980
Plugin Version:
1.6
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    health reward for healer and chance extra life of course bonus healing included
    Old 02-26-2022 , 06:44   [L4D & L4D2] Bonus Healing <fork> v1.6 [24-November-2022]
    Reply With Quote #1

    about / difference
    • new feature: extra life chance
    • completely rewrite and clean code
    • allow which action be bonus
    • ledge hangging abuse optional
    • fully float support, float input value will be lucky random
    • allow set health cap, and overflow buffer health can proportionally convert to real health
    • scaling the reward when player incapped

    ConVar

    PHP Code:
    // Enabled 'Bonus Healing'
    bonus_healing_enabled "1"

    // which actions allow bonus healing add numbers together you want.
    // -1=All 1=healed 2=revived 4=use pills 8=use adrenaline 16=ledge grabber 32=ledge helper
    // 64=protection 128=rescue closet 256=defib 511=All
    bonus_healing_allows "-1"

    // chance to get extra life when use adrenaline
    bonus_healing_adrenaline_1up "0.1"

    // amount of got extra buff health when use adrenaline
    bonus_healing_adrenaline_buff "0"

    // amount of got extra health when use adrenaline
    bonus_healing_adrenaline_health "10"

    // amount of got extra buff health who be defib
    bonus_healing_defibbed_buff "0"

    // amount of got extra health who be defib
    bonus_healing_defibbed_health "0.1"

    // reward chance to got extra life who defib teammate
    bonus_healing_defiber_1up "0.1"

    // reward amount of buff health who defib teammate
    bonus_healing_defiber_buff "10"

    // reward amount of health who defib teammate
    bonus_healing_defiber_health "0"

    // amount of got extra buff health who be healed
    bonus_healing_healed_buff "15"

    // amount of got extra health who be healed
    bonus_healing_healed_health "0"

    // reward chance to got extra life who healing teammate
    bonus_healing_healer_1up "0.1"

    // reward amount of buff health who healing teammate
    bonus_healing_healer_buff "10"

    // reward amount of health who healing teammate
    bonus_healing_healer_health "10"

    // chance to get extra life when use pills
    bonus_healing_pills_1up "0.1"

    // amount of got extra buff health when use pills
    bonus_healing_pills_buff "0"

    // amount of got extra health when use pills
    bonus_healing_pills_health "15"

    // reward chance to got extra life who be protected
    bonus_healing_protected_1up "0.01"

    // reward amount of buff health who be protected
    bonus_healing_protected_buff "1"

    // reward amount of health who be protected
    bonus_healing_protected_health "1"

    // reward chance to got extra life who protect teammate
    bonus_healing_protector_1up "0.02"

    // reward amount of buff health who protect teammate
    bonus_healing_protector_buff "2"

    // reward amount of health who protect teammate
    bonus_healing_protector_health "2"

    // amount of buff health who be rescued
    bonus_healing_rescued_buff "10"

    // amount of health who be rescued
    bonus_healing_rescued_health "0"

    // reward chance to got extra life who revive teammate
    bonus_healing_rescuer_1up "0.1"

    // reward amount of buff health who revive teammate
    bonus_healing_rescuer_buff "10"

    // reward amount of health who revive teammate
    bonus_healing_rescuer_health "10"

    // chance to get extra life who be revived
    bonus_healing_revived_1up "0.25"

    // amount of got extra buff health who be revived
    bonus_healing_revived_buff "0"

    // amount of got extra health who be revived
    bonus_healing_revived_health "15"

    // reward chance to got extra life who revive teammate
    bonus_healing_reviver_1up "0.1"

    // reward amount of buff health who revive teammate
    bonus_healing_reviver_buff "10"

    // reward amount of health who revive teammate
    bonus_healing_reviver_health "10"

    // health cap, well we dont really need player actually unlimited
    bonus_healing_health_max "100"

    // rate of turn the overflow temp health to real health when reached max, 0.5: turn as half 0: disable 1: completely turn
    // Minimum: "0.000000"
    bonus_healing_overflow_turn "0.5"

    // rate of earn health when player gets down
    bonus_healing_rate_incapped "3.0" 

    Related Plugin

    Forked Source

    changelog
    • v1.0 just releases; 26-2-22
      im not ate anything all day long, thanks kizuna ai live gave me power for hungry coding
      and all my needed about health well done, i may wont write more about health
    • v1.0.1 fix issue 'bonus twice when heal self', 'specifies actions'; 26-2-22
    • v1.0.2 fix little binary check cause not apply to HEAL; 26-2-22
    • v1.1 optional target 'ledge grabber or ledge helper', fix issue 'wrong cvar name cause healer reward buff cant change'; 7-March-2022
    • v1.2 add features
      new 'rescue closets healing',
      new 'teammates protection healing',
      new 'defibrillation healing',
      normalized the ConVar(s) name, clean the code name, you(who reading this text) need delete config file to regenerate; 8-March-2022
    • v1.2.1 add support '[L4D & L4D2] Heartbeat' plugin to properly set black-white screen; 26-April-2022
    • v1.3 add health cap option, and overflow buffer health can proportionally convert to real health; 8-October-2022
    • v1.4 new ConVar *_rate_incapped to control rate of earn health when player gets down; 31-October-2022
    • v1.5
      fix Extra Life feature work incorrect when '[L4D & L4D2] Heartbeat' plugin installed,
      also trigger *_protected_* and *_protector_* when save teammate from a hunter's pounce and smoker's choke; 14-November-2022
    • v1.6
      for dev, add 'forward void OnBonusHealing(int client, float amount, int action)',
      add 'native void BonusHealing(int client, float amount, int action = 0)',
      action 0=temp hp 1=hp 2=extra life 3=adrenaline; 24-November-2022

    For Developers
    PHP Code:

    enum 
    {
        
    ACTION_TEMP_HEALTH 0,
        
    ACTION_HEALTH,
        
    ACTION_EXTRALIFE,
        
    ACTION_ADRENALINE
    }

    native void BonusHealing(int clientfloat amountint action 0);

    forward void OnBonusHealing(int clientfloat amountint action); 

    Installation
    • put l4d_bonus_healling.smx on /plugins/
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_bonus_healling.sp - 494 views - 26.5 KB)
    __________________

    Last edited by NoroHime; 11-23-2022 at 17:10. Reason: update
    NoroHime is offline
    Evil_3D
    New Member
    Join Date: Mar 2022
    Old 03-06-2022 , 08:51   Re: [L4D & L4D2] Bonus Healing <fork> v1.0.2 [27-2-2]
    Reply With Quote #2

    Hello, I was testing the plugin and is a really nice improvement over the other version and I want to report some bugs.

    Ledge Grab gave 10hp buff (temporal) who revived.
    Healing with medkit a team mate gave 10hp buff (temporal) who healed even if you edit the value, for example 30.

    Of course I edited the .txt to test values and ammounts of hp before report this.

    I can give you my edited .txt so you can test and see if you have the same problems: https://www.mediafire.com/file/tn99b...aling.cfg/file
    Evil_3D is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 03-06-2022 , 13:16   Re: [L4D & L4D2] Bonus Healing <fork> v1.0.2 [27-2-2]
    Reply With Quote #3

    Quote:
    Originally Posted by Evil_3D View Post
    Hello, I was testing the plugin and is a really nice improvement over the other version and I want to report some bugs.

    Ledge Grab gave 10hp buff (temporal) who revived.
    Healing with medkit a team mate gave 10hp buff (temporal) who healed even if you edit the value, for example 30.

    Of course I edited the .txt to test values and ammounts of hp before report this.

    I can give you my edited .txt so you can test and see if you have the same problems: https://www.mediafire.com/file/tn99b...aling.cfg/file
    thanks report
    alright for the ledge grab reviver,this is intentional, but since there have needed, I will add option for ledge grab
    for the healer buff gain issue, I checked code i don't know what happen,I will test it later
    I have to going sleep zzZ
    __________________
    NoroHime is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 03-07-2022 , 00:17   Re: [L4D & L4D2] Bonus Healing <fork> v1.0.2 [27-2-2]
    Reply With Quote #4

    update

    Quote:
    PHP Code:
    // which actions allow bonus healing add numbers together you want.
    // -1=All 1=healed 2=revived 4=use pills 8=use adrenaline 16=ledge grabber 32=ledge helper
    bonus_healing_allows "-1" 
    changelog
    • v1.1 optional target 'ledge grabber or ledge helper', fix issue 'wrong cvar name cause healer reward buff cant change'; 7-March-2022

    todo
    • add Rescue & Defib & Teammate Protection support and adrenaline optional
    __________________

    Last edited by NoroHime; 03-07-2022 at 00:24.
    NoroHime is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 03-07-2022 , 16:07   Re: [L4D & L4D2] Bonus Healing <fork> v1.2 [8-March-2022]
    Reply With Quote #5

    update
    Quote:
    changelog
    • v1.2 add features
      new 'rescue closets healing',
      new 'teammates protection healing',
      new 'defibrillation healing',
      normalized the ConVar(s) name, clean the code name, you(who reading this text) need delete config file to regenerate; 8-March-2022

    PHP Code:
    // which actions allow bonus healing add numbers together you want.
    // -1=All 1=healed 2=revived 4=use pills 8=use adrenaline 16=ledge grabber 32=ledge helper
    // 64=protection 128=rescue closet 256=defib 511=All
    bonus_healing_allows "-1"

    // chance to get extra life when use adrenaline
    bonus_healing_adrenaline_1up "0.1"

    // amount of got extra buff health when use adrenaline
    bonus_healing_adrenaline_buff "0"

    // amount of got extra health when use adrenaline
    bonus_healing_adrenaline_health "10"

    // amount of got extra buff health who be defib
    bonus_healing_defibbed_buff "0"

    // amount of got extra health who be defib
    bonus_healing_defibbed_health "0.1"

    // reward chance to got extra life who defib teammate
    bonus_healing_defiber_1up "0.1"

    // reward amount of buff health who defib teammate
    bonus_healing_defiber_buff "10"

    // reward amount of health who defib teammate
    bonus_healing_defiber_health "0"

    // amount of got extra buff health who be healed
    bonus_healing_healed_buff "15"

    // amount of got extra health who be healed
    bonus_healing_healed_health "0"

    // reward chance to got extra life who healing teammate
    bonus_healing_healer_1up "0.1"

    // reward amount of buff health who healing teammate
    bonus_healing_healer_buff "10"

    // reward amount of health who healing teammate
    bonus_healing_healer_health "10"

    // chance to get extra life when use pills
    bonus_healing_pills_1up "0.1"

    // amount of got extra buff health when use pills
    bonus_healing_pills_buff "0"

    // amount of got extra health when use pills
    bonus_healing_pills_health "15"

    // reward chance to got extra life who be protected
    bonus_healing_protected_1up "0.01"

    // reward amount of buff health who be protected
    bonus_healing_protected_buff "1"

    // reward amount of health who be protected
    bonus_healing_protected_health "1"

    // reward chance to got extra life who protect teammate
    bonus_healing_protector_1up "0.02"

    // reward amount of buff health who protect teammate
    bonus_healing_protector_buff "2"

    // reward amount of health who protect teammate
    bonus_healing_protector_health "2"

    // amount of buff health who be rescued
    bonus_healing_rescued_buff "10"

    // amount of health who be rescued
    bonus_healing_rescued_health "0"

    // reward chance to got extra life who revive teammate
    bonus_healing_rescuer_1up "0.1"

    // reward amount of buff health who revive teammate
    bonus_healing_rescuer_buff "10"

    // reward amount of health who revive teammate
    bonus_healing_rescuer_health "10"

    // chance to get extra life who be revived
    bonus_healing_revived_1up "0.25"

    // amount of got extra buff health who be revived
    bonus_healing_revived_buff "0"

    // amount of got extra health who be revived
    bonus_healing_revived_health "15"

    // reward chance to got extra life who revive teammate
    bonus_healing_reviver_1up "0.1"

    // reward amount of buff health who revive teammate
    bonus_healing_reviver_buff "10"

    // reward amount of health who revive teammate
    bonus_healing_reviver_health "10" 
    well.... insomnia
    so many cvar kinda annoying
    i gave up provide adrenaline as reward, repeat work is so annoying annoying annoying
    __________________

    Last edited by NoroHime; 03-07-2022 at 16:09.
    NoroHime is offline
    xcd222
    Member
    Join Date: Mar 2022
    Old 03-24-2022 , 19:56   Re: [L4D & L4D2] Bonus Healing <fork> v1.2 [8-March-2022]
    Reply With Quote #6

    Finally I have been waiting for an edit of this plugin to get rid of the ledge hang healing. Thank you very much!
    xcd222 is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 04-27-2022 , 07:45   Re: [L4D & L4D2] Bonus Healing <fork> v1.2.1 [27-April-2022]
    Reply With Quote #7

    update

    Quote:
    PHP Code:
    // health cap, well we dont really need player actually unlimited
    bonus_healing_health_max "100"

    // rate of turn the overflow temp health to real health when reached max, 0.5: turn as half 0: disable 1: completely turn
    // Minimum: "0.000000"
    bonus_healing_overflow_turn "0.5"

    // rate of earn health when player gets down
    bonus_healing_rate_incapped "3.0" 
    changelog
    • v1.2.1 add support '[L4D & L4D2] Heartbeat' plugin to properly set black-white screen; 26-April-2022
    • v1.3 add health cap option, and overflow buffer health can proportionally convert to real health; 8-October-2022
    • v1.4 new ConVar *_rate_incapped to control rate of earn health when player gets down; 31-October-2022
    • v1.5
      fix Extra Life feature work incorrect when '[L4D & L4D2] Heartbeat' plugin installed,
      also trigger *_protected_* and *_protector_* when save teammate from a hunter's pounce and smoker's choke; 14-November-2022
    __________________

    Last edited by NoroHime; 11-14-2022 at 10:16. Reason: update
    NoroHime is offline
    zonbarbar
    Member
    Join Date: Jul 2022
    Old 01-10-2023 , 21:40   Re: [L4D & L4D2] Bonus Healing <fork> v1.6 [24-November-2022]
    Reply With Quote #8

    bonus_healing_adrenaline_1up 0.1 It's this mean 10% chance?
    I really got heal everytime use adrenaline
    zonbarbar is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 01-11-2023 , 04:06   Re: [L4D & L4D2] Bonus Healing <fork> v1.6 [24-November-2022]
    Reply With Quote #9

    Quote:
    Originally Posted by zonbarbar View Post
    bonus_healing_adrenaline_1up 0.1 It's this mean 10% chance?
    I really got heal everytime use adrenaline
    yes that mean 10% chance to clear once incapped count, i checked code no problem should be, is that keep happen when setting to 0?
    __________________

    Last edited by NoroHime; 01-11-2023 at 04:07.
    NoroHime is offline
    zonbarbar
    Member
    Join Date: Jul 2022
    Old 01-12-2023 , 05:36   Re: [L4D & L4D2] Bonus Healing <fork> v1.6 [24-November-2022]
    Reply With Quote #10

    sorry,i thought extra life = extra heal
    zonbarbar is offline
    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 22:33.


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