Raised This Month: $32 Target: $400
 8% 

[L4D/L4D2] Homerun bat (Tank knock back)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
rikka0w0
Member
Join Date: May 2018
Location: Sydney, Australia / Beij
Plugin ID:
6303
Plugin Version:
1.2
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Melee knock back of tanks and survivors
    Old 10-18-2018 , 12:10   [L4D/L4D2] Homerun bat (Tank knock back)
    Reply With Quote #1

    After you have this plugin in your L4D/L4D2 server, tanks can be knocked back by melee weapons e.g. fire axe.

    The original author is ztar, his/her homepage (In Japanese) is http://ztar.blog7.fc2.com/. I upgrade the code to the new syntax and add a threshold for the weapon size, with this new feature (if enabled by l4d2_homerun_largemelee, disabled by default), survivors can only knock back tanks with larger versions of melee weapons dropped by tanks (This is a feature of a plugin called "Melee Weapon Tank
    " which is available here)

    The rest of functions are not changed at all.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_homerun_bat.sp - 1555 views - 6.7 KB)
    __________________

    Last edited by rikka0w0; 10-18-2018 at 12:16.
    rikka0w0 is offline
    TuyDuyen
    New Member
    Join Date: Feb 2018
    Old 10-19-2018 , 12:17   Re: [L4D/L4D2] Homerun bat (Tank knock back)
    Reply With Quote #2

    I think we should remove it

    public Action Event_Weapon_Fire(Handle event, const char[] name, bool dontBroadcast)
    {
    int client = GetClientOfUserId(GetEventInt(event, "userid"));
    char weapon[64];
    GetEventString(event, "weapon", weapon, 64);

    /* Check current melee weapon */
    if(StrEqual(weapon, "melee") && GetConVarInt(GunzWeapon))
    {
    GetEntPropString(GetPlayerWeaponSlot(client, 1), Prop_Data, "m_strMapSetScriptName", weapon, sizeof(weapon));
    if (StrEqual(weapon, "katana") ||
    StrEqual(weapon, "machete") ||
    StrEqual(weapon, "knife"))
    {
    if(!(GetEntityFlags(client) & FL_ONGROUND))
    {
    /* Slash! */
    Smash(client, client, 350.0, 2.0, -0.1);

    }
    }
    }
    return Plugin_Continue;
    }

    it looks like bunny hop version bug
    TuyDuyen is offline
    nuclear silo
    Junior Member
    Join Date: May 2020
    Location: Viet Nam.
    Old 07-09-2021 , 05:14   Re: [L4D/L4D2] Homerun bat (Tank knock back)
    Reply With Quote #3

    thanks. nice plugin
    nuclear silo is offline
    Reply



    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 19:35.


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