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

[L4D1] Wounded Commons [v1.0.1 | 26-February-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7515
Plugin Version:
1.0.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Add wounds to common infected on spawn
    Old 02-26-2021 , 15:13   [L4D1] Wounded Commons [v1.0.1 | 26-February-2021]
    Reply With Quote #1

    L4D1 ONLY

    L4D2 version here

    Description

    This plugin adds wounds to common infecteds on spawn.

    Wounds are damages to common infected bodies.

    The logic may fail in some cases cause I didn't find a proper way to detect it 100%.

    Features
    • Allow setting the chance to common infecteds spawn without an arm (left/right).
    • Allow setting the chance to common infecteds spawn without head (headless).
    • Allow spawning headless common infecteds.
    • Allow blowing the head when a common infected is hit on the head.

    Cvars

    A configuration file named "l4d1_wounded_commons.cfg" will automatically be created for you upon the first run in the "\cfg\sourcemod\" folder.

    PHP Code:
    // Behead a common infected every time it is hit on the head.
    // 0 = OFF, 1 = ON.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d1_wounded_commons_behead_headshot "1"

    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d1_wounded_commons_enable "1"

    // Spawn headless common infected.
    // 0 = OFF, 1 = ON.
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d1_wounded_commons_headless "0"

    // Chance to apply an arm (left/right) wound on common infected spawn.
    // 0 = OFF.
    // -
    // Default: "33"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d1_wounded_commons_wound_arm_chance "33"

    // Chance to apply a head wound (headless) on common infected spawn.
    // 0 = OFF.
    // -
    // Default: "5"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d1_wounded_commons_wound_head_chance "5" 
    Change Log

    Spoiler


    Admin Commands
    • sm_wound => Set the body value of the target common infected at crosshair. Increment the value by one when no args are specified (starting from 0 on new targets). Example: no args -> sm_wound / with args -> sm_wound 4. (z flag required)
    • sm_woundinfo => Output to the chat the bodt value of the target common infected at crosshair. (z flag required)
    • sm_print_cvars_l4d1_wounded_commons => Print the plugin related cvars and their respective values to the console. (z flag required)

    Notes
    • Some models have different body values. I tried my best but didn't find logic on the values.
    • Only arms and heads wounds are rendered by this plugin.
    • Plugin may not affect clients that uses "low violence" (-lv) settings.
    • There are no changes to hitboxes, headless zombies can still be killed with headshots.

    Thank you!

    Related Plugins

    Post Reply
    • Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.

    Installation
    • Put the "l4d1_wounded_commons.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d1_wounded_commons.sp - 206 views - 21.0 KB)
    __________________

    Last edited by Marttt; 01-15-2023 at 12:19.
    Marttt is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 02-26-2021 , 16:05   Re: [L4D1] Wounded Commons [v1.0.0 | 26-February-2021]
    Reply With Quote #2

    I noticed that you used the "m_iRequestedWound1" netprop on line 490 which I think was an accident since that netprop doesn't exist in L4D1, hence that's most likely the reason why you separated this from the L4D2 version in the first place.
    __________________
    Psyk0tik is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 03-18-2021 , 07:21   Re: [L4D1] Wounded Commons [v1.0.1 | 26-February-2021]
    Reply With Quote #3

    Nicely done! And really very nice finding!
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    replay_84
    Senior Member
    Join Date: Jun 2021
    Old 01-21-2023 , 08:05   Re: [L4D1] Wounded Commons [v1.0.1 | 26-February-2021]
    Reply With Quote #4

    Very nice plugin, Marttt.

    I noticed it doesn't only do what's in the description, but also seems to add more gore to the headshots. It's not a bad looking effect at all, but maybe a little to much on the long run. Can this be controlled or disabled in the source file, or is it just like a side effect?
    replay_84 is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 01-21-2023 , 08:08   Re: [L4D1] Wounded Commons [v1.0.1 | 26-February-2021]
    Reply With Quote #5

    Maybe you should check the cvar below

    Quote:
    Originally Posted by Marttt View Post
    PHP Code:
    // Chance to apply a head wound (headless) on common infected spawn.
    // 0 = OFF.
    // -
    // Default: "5"
    // Minimum: "0.000000"
    // Maximum: "100.000000"
    l4d1_wounded_commons_wound_head_chance "5" 
    __________________

    Last edited by Marttt; 01-21-2023 at 08:08.
    Marttt is offline
    replay_84
    Senior Member
    Join Date: Jun 2021
    Old 01-21-2023 , 09:15   Re: [L4D1] Wounded Commons [v1.0.1 | 26-February-2021]
    Reply With Quote #6

    This does what it's supposed to. And that's making spawns of commons without head more likely, or turn it off. I don't see how this is related to the headshot gore.


    I have this disabled btw.


    edit: nevermind. I think I like the blood effects.

    Last edited by replay_84; 01-21-2023 at 19:46.
    replay_84 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:08.


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