Raised This Month: $51 Target: $400
 12% 

[L4D2] Weapon Drop


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Machine
Senior Member
Join Date: Apr 2010
Plugin ID:
1586
Plugin Version:
1.4
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows a survivor to drop the weapon they are holding
    Old 04-02-2010 , 11:32   [L4D2] Weapon Drop
    Reply With Quote #1

    Description:

    This is a weapon drop plugin for L4D2. It allows you to drop anything.

    Usage:

    Just type !drop in chat. Alternatively, you can bind a key to sm_drop.

    Admin Usage:

    Root admins can also force survivors to drop a slotted item.
    sm_drop <#userid|name> <slot to drop>

    Changelog:

    1.0
    - Release
    1.1
    - Added weapon upgrades support
    1.2
    - Added The Passing Weapon Support
    1.3
    - Uses SDKCall to force player to drop weapon
    1.4
    - Updated gamedata for both windows/linux (Thanks Peace-Maker)
    - Added targeting for root admins
    1.5
    - Removed gamedata requirement

    Credits:

    dcx and Electr000999 for contributing, thank you guys!
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_drop.sp - 7077 views - 4.7 KB)

    Last edited by Machine; 09-11-2014 at 21:08. Reason: removed the .smx file - plugin compiles fine on the forums.
    Machine is offline
    MarshalZCC
    Senior Member
    Join Date: Feb 2010
    Location: Alberta, Canada
    Old 04-02-2010 , 18:24   Re: [L4D2] Weapon Drop
    Reply With Quote #2

    The important question is:

    Does is support dropping weapons that have ammo/laser upgrades? Ie. will they be retained when they are picked up again? If not, it should be added.
    MarshalZCC is offline
    Machine
    Senior Member
    Join Date: Apr 2010
    Old 04-02-2010 , 19:08   Re: [L4D2] Weapon Drop
    Reply With Quote #3

    It does not, i will add those changes in the next update.

    Edit: Updated to 1.1

    Last edited by Machine; 04-02-2010 at 19:46.
    Machine is offline
    MarshalZCC
    Senior Member
    Join Date: Feb 2010
    Location: Alberta, Canada
    Old 04-02-2010 , 20:55   Re: [L4D2] Weapon Drop
    Reply With Quote #4

    Awesome work. Much appreciated.
    MarshalZCC is offline
    LTR.2
    Veteran Member
    Join Date: Aug 2009
    Old 04-02-2010 , 22:17   Re: [L4D2] Weapon Drop
    Reply With Quote #5

    i knew someone would take care of this today.

    question, if you type !drop and you are holding a melee weapon, it goes back to pistols?

    Last edited by LTR.2; 04-03-2010 at 00:36.
    LTR.2 is offline
    troop5
    Member
    Join Date: Dec 2009
    Old 04-02-2010 , 22:39   Re: [L4D2] Weapon Drop
    Reply With Quote #6

    No, you become weaponless.
    troop5 is offline
    LTR.2
    Veteran Member
    Join Date: Aug 2009
    Old 04-03-2010 , 00:36   Re: [L4D2] Weapon Drop
    Reply With Quote #7

    Quote:
    Originally Posted by troop5 View Post
    No, you become weaponless.
    that's impossible in L4d2
    LTR.2 is offline
    Oshroth
    Senior Member
    Join Date: Dec 2009
    Old 04-03-2010 , 03:56   Re: [L4D2] Weapon Drop
    Reply With Quote #8

    Quote:
    Originally Posted by LTR.2 View Post
    that's impossible in L4d2
    Its possible, if you have no weapon selected you go into civilian mode, where you model gets stuck in the default position
    __________________
    Oshroth is offline
    LTR.2
    Veteran Member
    Join Date: Aug 2009
    Old 04-03-2010 , 13:28   Re: [L4D2] Weapon Drop
    Reply With Quote #9

    Quote:
    Originally Posted by LTR.2 View Post
    question, if you type !drop and you are holding a melee weapon, it goes back to pistols?
    i prefer this.
    maybe it could be optional with a cvar, choose wheter or not if dropping a melee will give us a pistol or not.
    LTR.2 is offline
    MarshalZCC
    Senior Member
    Join Date: Feb 2010
    Location: Alberta, Canada
    Old 04-03-2010 , 14:55   Re: [L4D2] Weapon Drop
    Reply With Quote #10

    Quote:
    Originally Posted by LTR.2 View Post
    i prefer this.
    maybe it could be optional with a cvar, choose wheter or not if dropping a melee will give us a pistol or not.
    Problem is: someone could spawn infinite pistols with this option enabled and crash the server.
    MarshalZCC 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 10:05.


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