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

[L4D1 & L4D2] Prevent Survivor Action On Damage [v1.0.0 | 08-August-2021]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7751
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Prevent survivors from helping themselves and teammates while taking damage
    Old 08-08-2021 , 21:42   [L4D1 & L4D2] Prevent Survivor Action On Damage [v1.0.0 | 08-August-2021]
    Reply With Quote #1

    Description

    This plugin prevents survivors from helping themselves and teammates while taking damage.

    Some examples where this is allowed without the plugin:
    • Helping an incapacitated teammate from fire/spitter while taking damage.
    • Healing yourself or a teammate while taking damage.
    • Defibrillating someone while taking damage.

    Features
    • Allow configuring plugin behavior on humans or bots only.

    Cvars

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

    PHP Code:
    // Which type of client (human/bot) should the plugin affect.
    // 0 = NONE, 1 = HUMAN, 2 = BOT, 3 = BOTH.
    // Add numbers greater than 0 for multiple options.
    // Example: "3", enables for Humans and Bots.
    // -
    // Default: "3"
    // Minimum: "0.000000"
    // Maximum: "3.000000"
    l4d_prevent_action_damage_client_type "3"

    // Enable/Disable the plugin.
    // 0 = Disable, 1 = Enable.
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_prevent_action_damage_enable "1" 
    Admin Commands
    • sm_print_cvars_l4d_prevent_action_damage => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Notes
    • The animation may glitch.

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

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

    Last edited by Marttt; 01-15-2023 at 12:20.
    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 03:42.


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