Raised This Month: $7 Target: $400
 1% 

[L4D2] Drop weapon when punched (v1.1)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
cheewongken
Senior Member
Join Date: Feb 2009
Plugin ID:
1949
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    Survivors will drop their weapon when they get punched by a tank.
    Old 09-13-2010 , 01:06   [L4D2] Drop weapon when punched (v1.1)
    Reply With Quote #1

    [L4D2] Drop weapon when punched (v1.1)

    About:
    This is my first plugin that I'm posting here. I didn't notice anything like this when I got the idea... It makes you drop your weapon (Primary and Secondary only) when you get hit by a tank. To be fair your pistols/magnum will not be removed and you will be given a pistol if your melee weapon is dropped (as if you were incapacitated). This pistol will automatically be removed when you pick up another secondary weapon (other than a pistol)

    Cvars:
    l4d2_dwp_version
    - Self explanatory

    l4d2_dwp_enabled (Default: 1)
    - Is plugin enabled? 1=Yes, 0=No

    l4d2_dwp_drop_chainsaw (Default: 1)
    - Will you drop chainsaw if you get hit? 1=Yes, 0=No

    l4d2_dwp_drop_melee (Default: 1)
    - Will you drop melee weapon if you get hit? 1=Yes, 0=No

    l4d2_dwp_drop_when_incapped (Default: 0)
    - Will you drop weapon if you get incapped? 1=Yes, 0=No

    l4d2_dwp_give_pistol (Default: 1)
    - Will you get a pistol if you drop your melee weapon? 1=Yes, 0=No

    Note:
    • Occasionally when a tank hits you, his fist will hit the weapon as well. You will see the weapon speed off into the sky at high speed. The weapon can still be found though.

    Changelog
    v1.1
    Did as Silvers suggested
    v1.0
    Release

    Credits:
    Machine (for [L4D2] Weapon Drop)
    McFlurry (for [L4D2] Melee Mode v1.6.3 *Update*)
    mi123645 (for a bit of code i used)
    CrazzyMonkey (for testing it out)
    and the rest is mentioned in the source.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_drop_punched.sp - 3283 views - 12.2 KB)

    Last edited by cheewongken; 10-12-2010 at 01:17.
    cheewongken 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 05:04.


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