Raised This Month: $2 Target: $400
 0% 

[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 - 5620 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
    Frus
    Senior Member
    Join Date: Aug 2009
    Old 04-03-2010 , 05:14   Re: [L4D2] Weapon Drop
    Reply With Quote #9

    Actually it just doesn't let you select that slot, you have to remove all your weapons before you go into civ mode. (It's not even really civ mode like in other source games, if you remember pausing in frusmod, that's what it looks like when your emove all your weapons) I stopped you from dropping your first pistol in the original one to ensure you always have a weapon, that and the game generally assumes you always have a pistol, i.e. incaps etc.

    Last edited by Frus; 04-03-2010 at 05:16.
    Frus is offline
    Oshroth
    Senior Member
    Join Date: Dec 2009
    Old 04-03-2010 , 07:04   Re: [L4D2] Weapon Drop
    Reply With Quote #10

    Quote:
    Originally Posted by Frus View Post
    Actually it just doesn't let you select that slot, you have to remove all your weapons before you go into civ mode. (It's not even really civ mode like in other source games, if you remember pausing in frusmod, that's what it looks like when your emove all your weapons) I stopped you from dropping your first pistol in the original one to ensure you always have a weapon, that and the game generally assumes you always have a pistol, i.e. incaps etc.
    The game replaces your melee with a pistol when you get incapped, then when you get rescued, it removes the weapon you had in your secondary slot and gives you back your melee.
    __________________
    Oshroth 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 14:46.


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