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

[L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.1 [5-May-2022]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Plugin ID:
8041
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    11 
    Plugin Description:
    adjust damage modifier for per limb even tank
    Old 04-25-2022 , 13:05   [L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.1 [5-May-2022]
    Reply With Quote #1

    about
    • custom the body part damage multiplier, this should made game funny
    • preset is lower the arms and legs damage and higher the damage close to the head
    • this is my realism part


    ConVar

    PHP Code:
    // damage modifier for arm left
    limb_modifier_arm_left "0.95"

    // damage modifier for arm right
    limb_modifier_arm_right "0.95"

    // damage modifier for chest
    limb_modifier_chest "1.33"

    // damage modifier for headshot
    limb_modifier_head "1.5"

    // damage modifier for leg left
    limb_modifier_leg_left "0.95"

    // damage modifier for leg right
    limb_modifier_leg_right "0.95"

    // damage modifier for stomach
    limb_modifier_stomach "1.2"

    // apply the modifier for which targets
    // 1=commons 2=Smoker 4=Boomer 8=Hunter 16=Spitter 32=Jockey 64=Charger
    // 128=Witch 256=Tank 512=Survivor 1023=All. Add numbers together.
    limb_modifier_targets "-1"

    // damage type to allow apply modifier
    // 2=bullet 4=slash 8=burn 64=blast 128=club 0=all. add numbers together yo want
    // more see sdkhooks.inc
    limb_modifier_allow_damage "2"

    // ammo type to allow apply modifier
    // 0=all. add numbers together yo want
    limb_modifier_allow_ammo "0" 

    Related Plugin

    changelog
    • v1.0 just releases; 26-April-2022
    • v1.1 add feature: specifies damage type or ammo type to allow apply modifier; 5-May-2022

    todo
    • maybe configs for per species infected


    Installation
    • Put l4d_limb_modifier.smx in /plugins/
    Attached Images
    File Type: jpg fragile leg.jpg (71.1 KB, 503 views)
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_limb_modifier.sp - 776 views - 7.2 KB)
    __________________

    Last edited by NoroHime; 05-22-2022 at 04:37.
    NoroHime is offline
    Toranks
    Senior Member
    Join Date: Dec 2021
    Location: Spain
    Old 04-25-2022 , 13:36   Re: [L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.0[26-April-2022]
    Reply With Quote #2

    z_non_head_damage_factor affects to these settings?

    For example,

    limb_modifier_arm_left 0.5
    z_non_head_damage_factor_normal 0.5
    Total damage on left arm: 0.5*0.5=0.25

    This is right?
    Toranks is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 04-25-2022 , 20:00   Re: [L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.0[26-April-2022]
    Reply With Quote #3

    Quote:
    Originally Posted by Toranks View Post
    z_non_head_damage_factor affects to these settings?

    For example,

    limb_modifier_arm_left 0.5
    z_non_head_damage_factor_normal 0.5
    Total damage on left arm: 0.5*0.5=0.25

    This is right?
    yes no problem, multiplier kinda simple
    __________________
    NoroHime is offline
    Iizuka07
    Senior Member
    Join Date: Aug 2018
    Location: Underground
    Old 04-26-2022 , 09:22   Re: [L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.0[26-April-2022]
    Reply With Quote #4

    Very creative
    __________________
    死が待っている
    Iizuka07 is offline
    Maur0
    Senior Member
    Join Date: Aug 2020
    Old 04-26-2022 , 11:53   Re: [L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.0[26-April-2022]
    Reply With Quote #5

    This is the most! I loved it a lot! This is somewhat similar to Killing Floor 2, where each type of Zeds have a different damage factor, be it resistance or vulnerability. And more when you applied headshot to the Tank. YOU ARE A GENIOUS!

    Something I want to ask you if you don't mind and I don't want to complicate you too much. Separate for each of the special infected, Tank, Witch and the Common Infected. How to add one by one. This would be easier for a data file. I don't know if it's complicated for you and I'm asking a lot.

    But hey, if possible. I'm in no hurry, so take ALL your time.
    Maur0 is offline
    SDArt
    Member
    Join Date: Aug 2019
    Old 04-27-2022 , 14:23   Re: [L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.0[26-April-2022]
    Reply With Quote #6

    Does this and your Limb-Based Penetration Pistol plugin works with this
    SDArt is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 04-28-2022 , 04:27   Re: [L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.0[26-April-2022]
    Reply With Quote #7

    Quote:
    Originally Posted by SDArt View Post
    Does this and your Limb-Based Penetration Pistol plugin works with this
    of course no problem, they have minimum modification principle, you can view the code see work way
    Quote:
    Originally Posted by Maur0 View Post
    This is the most! I loved it a lot! This is somewhat similar to Killing Floor 2, where each type of Zeds have a different damage factor, be it resistance or vulnerability. And more when you applied headshot to the Tank. YOU ARE A GENIOUS!
    should be no problem, they have minimum modify and work with other plugin

    Something I want to ask you if you don't mind and I don't want to complicate you too much. Separate for each of the special infected, Tank, Witch and the Common Infected. How to add one by one. This would be easier for a data file. I don't know if it's complicated for you and I'm asking a lot.

    But hey, if possible. I'm in no hurry, so take ALL your time.
    yes, im founding for good way to load config
    __________________

    Last edited by NoroHime; 04-28-2022 at 04:28.
    NoroHime is offline
    Maur0
    Senior Member
    Join Date: Aug 2020
    Old 04-28-2022 , 15:04   Re: [L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.0[26-April-2022]
    Reply With Quote #8

    NoroHime - Cool, thanks!
    Maur0 is offline
    NoroHime
    Veteran Member
    Join Date: Aug 2016
    Location: bed
    Old 05-05-2022 , 10:31   Re: [L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.1 [5-May-2022]
    Reply With Quote #9

    update, i noticed melee shouldnt be apply modifier
    Quote:
    ConVar

    PHP Code:
    // damage type to allow apply modifier
    // 2=bullet 4=slash 8=burn 64=blast 128=club 0=all. add numbers together yo want
    // more see sdkhooks.inc
    limb_modifier_allow_damage "2"

    // ammo type to allow apply modifier
    // 0=all. add numbers together yo want
    limb_modifier_allow_ammo "0" 

    changelog
    • v1.1 add feature: specifies damage type or ammo type to allow apply modifier; 5-May-2022

    todo
    • maybe configs for per species infected
    __________________
    NoroHime is offline
    xZk
    Senior Member
    Join Date: Nov 2017
    Location: cl
    Old 05-21-2022 , 13:16   Re: [L4D & L4D2] Limb-Based Damage Modifier / Headshot Tank v1.1 [5-May-2022]
    Reply With Quote #10

    nice job, where can i get the values for this limb_modifier_allow_ammo?
    pd:
    Code:
    // apply the modifier for which targets
    // 32=Jockey 32=Charger
    xZk 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:06.


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