Raised This Month: $18 Target: $400

[L4D & L4D2] Tank Punch Force (1.2) [10-May-2020]

Post New Thread Reply   
Thread Tools Display Modes
AlliedModders Donor
Join Date: Aug 2010
Location: SpaceX
Plugin ID:
Plugin Version:
Plugin Category:
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    Plugin Description:
    Scales the Tanks punching force for standing or incapped survivors.
    Old 01-14-2020 , 16:54   [L4D & L4D2] Tank Punch Force (1.2) [10-May-2020]
    Reply With Quote #1

    Related Plugins:

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

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


    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.

    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.


    DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires DHooks!
    1. Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
    2. Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_tank_punch_force.sp - 43 views - 9.4 KB)
    File Type: smx l4d_tank_punch_force.smx (6.6 KB, 53 views)
    File Type: txt l4d_tank_punch_force.txt (1.3 KB, 217 views)

    Last edited by Silvers; 05-10-2020 at 07:14.
    Silvers is offline
    Join Date: Dec 2017
    Location: thy old times
    Old 01-15-2020 , 09: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 11:54.
    KoMiKoZa is offline

    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 10:01.

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