Raised This Month: $81 Target: $400
 20% 

[L4D1 & L4D2] Ignore Physics Damage [v1.0.0 | 07-January-2021]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Plugin ID:
7451
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Ignores physics damage dealt to clients
    Old 01-07-2021 , 18:50   [L4D1 & L4D2] Ignore Physics Damage [v1.0.0 | 07-January-2021]
    Reply With Quote #1

    Description

    This plugin ignores physics damage on some clients and also removes the damage that a Tank receives from props (e.g. car).

    I did this because people used to melee/shove the tv at saferoom (No Mercy map, as an example) and every time it hits a survivor, it loses an annoying 3 HP.

    Also felt a bit unrealistic the amount of damage the tank loses sometimes while trying to hit a car into the survivors.

    Features
    • Configuring which SI should ignore physics damage.
    • Configuring the maximum damage to be ignored by all survivors.

    Cvars

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

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

    // Which special infected should ignore physics damage.
    // 1 = SMOKER, 2 = BOOMER, 4 = HUNTER, 8 = SPITTER, 16 = JOCKEY, 32 = CHARGER, 64 = TANK.
    // Add numbers greater than 0 for multiple options.
    // Example: "127", ignores physics damage on all SI.
    // -
    // Default: "64"
    // Minimum: "0.000000"
    // Maximum: "127.000000"
    l4d_ignore_physics_damage_si "64"

    // Maximum physics damage to be ignored by all survivors.
    // 0 = OFF.
    // -
    // Default: "4.0"
    // Minimum: "0.000000"
    l4d_ignore_physics_damage_survivor "4.0" 
    Admin Commands
    • sm_print_cvars_l4d_ignore_physics_damage => Print the plugin related cvars and their respective values to the console. (z flag required)

    Change Log

    Spoiler


    Notes
    • The average damage that a common prop does to survivors is 3~4.

    Related Plugins

    To Do
    • Find a proper way to detect the physics mass instead of checking the damage.

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

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

    Last edited by Marttt; 01-15-2023 at 13:19.
    Marttt is offline
    a2121858
    Member
    Join Date: Sep 2020
    Old 01-07-2021 , 22:37   Re: [L4D1 & L4D2] Ignore Physics Damage [v1.0.0 | 07-January-2021]
    Reply With Quote #2

    Good stuff. Thank you, marttt
    a2121858 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 06:20.


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