AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Killing Adrenaline v1.2.2 [17-October-2022] (https://forums.alliedmods.net/showthread.php?t=336184)

NoroHime 02-02-2022 10:51

[L4D2] Killing Adrenaline v1.2.2 [17-October-2022]
 
7 Attachment(s)
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

NoroHime 02-03-2022 14:30

Re: [L4D2] Killing Adrenaline v1.1 [2-4-22]
 
update
Quote:

v1.1 add feature: gain adrenaline duration when pills used, userid bug fix; 2-4-22
PHP Code:

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



NoroHime 02-15-2022 22:58

Re: [L4D2] Killing Adrenaline v1.2 [2-16-22]
 
update combo system

Quote:

  • v1.2 add feature: combo system - duraion increase for combo kill by exponential growth, optional: cooldown time and exponent multiplier; 2-16-22
  • v1.2.1 remove unsafe feature 'stack adrenaline', please go to plugin 'Medicines No More Limited'; 26-2-22
PHP Code:

// 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" 



weakestL4D2enjoyer 05-27-2022 22:29

Re: [L4D2] Killing Adrenaline v1.2.1 [26-2-22]
 
This is an interesting game changer, I really enjoy this plugin. Thank you!

weakestL4D2enjoyer 05-31-2022 23:00

Re: [L4D2] Killing Adrenaline v1.2.1 [26-2-22]
 
I guess there's a bug. Seem like killing a witch doesn't gain any duration.

NoroHime 10-17-2022 05:22

Re: [L4D2] Killing Adrenaline v1.2.1 [26-2-22]
 
Quote:

Originally Posted by weakestL4D2enjoyer (Post 2780666)
I guess there's a bug. Seem like killing a witch doesn't gain any duration.

yes fixed, and i rewrite my code make it clearly

update
Quote:

v1.2.2 fix wrong adrenaline duration, thanks to Silvers, fix witch not trigger; 17-October-2022

BenLH 06-10-2023 08:38

Re: [L4D2] Killing Adrenaline v1.2.2 [17-October-2022]
 
Nice plugin. Whilie the adrenaline redness effect always block my eyesight. Do you have a method to remove the adrenaline blur?

NoroHime 06-10-2023 10:38

Re: [L4D2] Killing Adrenaline v1.2.2 [17-October-2022]
 
Quote:

Originally Posted by BenLH (Post 2805824)
Nice plugin. Whilie the adrenaline redness effect always block my eyesight. Do you have a method to remove the adrenaline blur?

maybe this workshop mod helps for you Bashed & Adrenaline Particle Effect Optimizer

BenLH 06-11-2023 00:14

Re: [L4D2] Killing Adrenaline v1.2.2 [17-October-2022]
 
It works, thanks a lot


All times are GMT -4. The time now is 12:45.

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