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

[L4D & L4D2] Tank Punch Force (2.1) [10-Jan-2024]


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
6902
Plugin Version:
2.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Scales the Tanks punching force for standing or incapped survivors.
    Old 01-14-2020 , 17:54   [L4D & L4D2] Tank Punch Force (2.1) [10-Jan-2024]
    Reply With Quote #1

    Related Plugins:

    About:
    • Scales a survivors velocity when punched by the Tank.
    • Also scales incapacitated survivors velocity.


    Thanks:
    • KoMiKoZa - For the request.
    • Lux - For notifying me.


    Cvars:

    Saved to l4d_tank_punch_force.cfg in your servers \cfg\sourcemod\ folder.

    PHP Code:
    // 0=Plugin off, 1=Plugin on.
    l4d_tank_punch_force_allow "1"

    // Scales a Survivors velocity when punched by the Tank.
    l4d_tank_punch_force_force "1.0"

    // Scales an Incapped Survivors velocity when punched by the Tank.
    l4d_tank_punch_force_incap "0.0"

    // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
    l4d_tank_punch_force_modes ""

    // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
    l4d_tank_punch_force_modes_off ""

    // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
    l4d_tank_punch_force_modes_tog "0"

    // Tank Punch Force plugin version.
    l4d_tank_punch_force_version 


    Changes:
    Code:
    2.1 (10-Jan-2024)
        - Changed the plugins on/off/mode cvars to use the "Left 4 DHooks" method instead of creating an entity.
    
    2.0 (12-Nov-2022)
        - Added cvars "l4d_tank_punch_force_forcez" and "l4d_tank_punch_force_fling" to control the z velocity and type of fling.
        - Compatibility with the "Block Stumble From Tanks" plugin by "Silvers".
        - Plugin now requires "Left 4 DHooks Direct" plugin by "Silvers".
        - Removed gamedata dependency.
    
    1.3 (14-Nov-2021)
        - Changes to fix warnings when compiling on SourceMod 1.11.
        - Updated GameData signatures to avoid breaking when detoured by the "Left4DHooks" plugin.
    
    1.2 (10-May-2020)
        - Added better error log message when gamedata file is missing.
        - Extra checks to prevent "IsAllowedGameMode" throwing errors.
    
    1.1 (01-Apr-2020)
        - Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
    
    1.0 (14-Jan-2020)
        - Initial release.


    Requirements:
    1. Left 4 DHooks Direct plugin.


    Installation:
    DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires Left4DHooks!
    • Download the .smx file and put into your servers \addons\sourcemod\plugins folder.


    Updating from 1.3 or older:
    • New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_tank_punch_force.sp - 30 views - 9.3 KB)
    File Type: smx l4d_tank_punch_force.smx (7.5 KB, 29 views)
    __________________

    Last edited by Silvers; 01-11-2024 at 11:50.
    Silvers is offline
    KoMiKoZa
    Senior Member
    Join Date: Dec 2017
    Location: Thy old times.
    Old 01-15-2020 , 10:28   Re: [L4D & L4D2] Tank Punch Force (1.0) [14-Jan-2020]
    Reply With Quote #2

    Woot! Much obliged. Will this conflict with Lux' addon though? Or will it just override it? Because I'm expecting to have both punch and rock force to be there.

    Well, guess I'll find out.

    UPD: Works well, thanks a lot!

    Last edited by KoMiKoZa; 01-15-2020 at 12:54.
    KoMiKoZa is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 11-12-2022 , 07:42   Re: [L4D & L4D2] Tank Punch Force (2.0) [12-Nov-2022]
    Reply With Quote #3

    Code:
    2.0 (12-Nov-2022)
        - Added cvars "l4d_tank_punch_force_forcez" and "l4d_tank_punch_force_fling" to control the z velocity and type of fling.
        - Compatibility with the "Block Stumble From Tanks" plugin by "Silvers".
        - Plugin now requires "Left 4 DHooks Direct" plugin by "Silvers".
        - Removed gamedata dependency.
    __________________
    Silvers is offline
    Maur0
    Senior Member
    Join Date: Aug 2020
    Old 11-12-2022 , 22:31   Re: [L4D & L4D2] Tank Punch Force (2.0) [12-Nov-2022]
    Reply With Quote #4

    Quote:
    Originally Posted by Silvers View Post
    Code:
    2.0 (12-Nov-2022)
        - Added cvars "l4d_tank_punch_force_forcez" and "l4d_tank_punch_force_fling" to control the z velocity and type of fling.
        - Compatibility with the "Block Stumble From Tanks" plugin by "Silvers".
        - Plugin now requires "Left 4 DHooks Direct" plugin by "Silvers".
        - Removed gamedata dependency.
    Big update. Great job. Thank you very much!
    Maur0 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 08:07.


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