Raised This Month: $ Target: $400
 0% 

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


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 - 227 views - 21.0 KB)
    __________________

    Last edited by Marttt; 01-15-2023 at 12:19.
    Marttt is offline
     



    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 23:41.


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