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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Plugin ID:
7945
Plugin Version:
1.2.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Adrenaline Duration increases by killing, Stack Duration when use multiple adrenalines
    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 - 432 views - 14.3 KB)
    __________________

    Last edited by NoroHime; 10-17-2022 at 05:23.
    NoroHime is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 02-03-2022 , 14:30   Re: [L4D2] Killing Adrenaline v1.1 [2-4-22]
    Reply With Quote #2

    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 is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 02-15-2022 , 22:58   Re: [L4D2] Killing Adrenaline v1.2 [2-16-22]
    Reply With Quote #3

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

    Last edited by NoroHime; 02-26-2022 at 03:02.
    NoroHime is offline
    weakestL4D2enjoyer
    Junior Member
    Join Date: May 2022
    Old 05-27-2022 , 22:29   Re: [L4D2] Killing Adrenaline v1.2.1 [26-2-22]
    Reply With Quote #4

    This is an interesting game changer, I really enjoy this plugin. Thank you!
    weakestL4D2enjoyer is offline
    weakestL4D2enjoyer
    Junior Member
    Join Date: May 2022
    Old 05-31-2022 , 23:00   Re: [L4D2] Killing Adrenaline v1.2.1 [26-2-22]
    Reply With Quote #5

    I guess there's a bug. Seem like killing a witch doesn't gain any duration.

    Last edited by weakestL4D2enjoyer; 06-01-2022 at 23:27. Reason: tank gain duration after testing
    weakestL4D2enjoyer is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 10-17-2022 , 05:22   Re: [L4D2] Killing Adrenaline v1.2.1 [26-2-22]
    Reply With Quote #6

    Quote:
    Originally Posted by weakestL4D2enjoyer View Post
    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
    __________________
    NoroHime is offline
    BenLH
    Junior Member
    Join Date: Aug 2019
    Old 06-10-2023 , 08:38   Re: [L4D2] Killing Adrenaline v1.2.2 [17-October-2022]
    Reply With Quote #7

    Nice plugin. Whilie the adrenaline redness effect always block my eyesight. Do you have a method to remove the adrenaline blur?
    BenLH is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 06-10-2023 , 10:38   Re: [L4D2] Killing Adrenaline v1.2.2 [17-October-2022]
    Reply With Quote #8

    Quote:
    Originally Posted by BenLH View Post
    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
    __________________
    NoroHime is offline
    BenLH
    Junior Member
    Join Date: Aug 2019
    Old 06-11-2023 , 00:14   Re: [L4D2] Killing Adrenaline v1.2.2 [17-October-2022]
    Reply With Quote #9

    It works, thanks a lot
    BenLH is offline
    Reply


    Thread Tools
    Display Modes

    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 13:09.


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