View Single Post
Author Message
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 02-02-2022 , 10:51   [L4D2] Killing Adrenaline v1.2.2 [17-October-2022]
Reply With Quote #1

about
  • make you killing generate more adrenaline
  • when you kill every zombie, adrenaline duration will increase by kill difficulty depending on distance/heashot/SI/melee/ and configurable
  • when you make combo, duration also increase
  • reference some code from Left 4 Dhooks Direct(left4dhooks_lux_library.inc)
  • this is my realism part

ConVar

PHP Code:
// Killing Adrenaline enable
killing_adrenaline_enable "1"

// normal kill one zombie will increase this adrenaline duration
killing_adrenaline_duration_base "0.33"

// allow bot increase duration
killing_adrenaline_allow_bot "1"

// allow increase duration even player not under adrenaline
killing_adrenaline_allow_cooling "1"

// to get max distance multiplier, how long
killing_adrenaline_distance_max "1200"

// if kill distance close to max, multiplier also close to x1.5, nearest is x1
killing_adrenaline_distance_ratio "1.5"

// duration multiplier of grenade launcher kill
killing_adrenaline_grenade_ratio "0.75"

// duration multiplier of headshot kill
killing_adrenaline_headshot_ratio "1.5"

// duration multiplier of melee kill
killing_adrenaline_melee_ratio "1.16"

// duration multiplier of pipe bomb kill
killing_adrenaline_piped_ratio "0.85"

// duration multiplier of boomer
killing_adrenaline_boomer_ratio "1.33"

// duration multiplier of charger
killing_adrenaline_charger_ratio "1.5"

// duration multiplier of hunter
killing_adrenaline_hunter_ratio "1.25"

// duration multiplier of jockey
killing_adrenaline_jockey_ratio "1.25"

// duration multiplier of smoker
killing_adrenaline_smoker_ratio "1.33"

// duration multiplier of spitter
killing_adrenaline_spitter_ratio "1.2"

// duration multiplier of tank
killing_adrenaline_tank_ratio "32"

// duration multiplier of witch
killing_adrenaline_witch_ratio "32"

// also gain adrenaline when use pain pills, 0.5: half of ConVar 'adrenaline_duration' 0: disable
killing_adrenaline_pills_gain "0.5"

// combo time, between prev kill mean you make a combo, -1: same as 'duration_base', 0: disable combo
killing_adrenaline_combo_time  "-1"

// exponential growth ratio, 10x combo mean 0.33*1.072^10=0.66 doubling on every 10x
killing_adrenaline_combo_ratio "1.072" 
event forward
call before declare:
PHP Code:
forward Action OnAdrenalineGiven(int clientfloat duration); 
trigger:
PHP Code:
public Action OnAdrenalineGiven(int clientfloat duration) {/**/

Related Plugin

changelog
  • v1.0 just released; 2-2-22
  • v1.1 add feature: gain adrenaline duration when pills used; 4-2-22
  • v1.2 add feature: combo system - duraion increase for combo kill by exponential growth, optional: cooldown time and exponent multiplier; 16-2-22
  • v1.2.1 pills extra adrenaline ignore option 'allow_cooling', remove unsafe feature 'stack adrenaline', please go to plugin 'Medicines No More Limited'; 26-2-22
  • v1.2.2 fix wrong adrenaline duration, thanks to Silvers, fix witch not trigger; 17-October-2022
Attached Files
File Type: sp Get Plugin or Get Source (l4d2_killing_adrenaline.sp - 466 views - 14.3 KB)
__________________

Last edited by NoroHime; 10-17-2022 at 05:23.
NoroHime is offline