Author
|
|
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:
|
|
| |
Plugin Description:
|
health reward for healer and chance extra life of course bonus healing included
|
|
|
02-26-2022
, 06:44
[L4D & L4D2] Bonus Healing <fork> v1.6 [24-November-2022]
|
#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 client, float amount, int action = 0);
forward void OnBonusHealing(int client, float amount, int action);
Installation- put l4d_bonus_healling.smx on /plugins/
__________________
Last edited by NoroHime; 11-23-2022 at 17:10.
Reason: update
|
|
|
|