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

[L4D & L4D2] Caught Item Drop


Post New Thread Reply   
 
Thread Tools Display Modes
Author
kwski43
Senior Member
Join Date: Mar 2009
Plugin ID:
1828
Plugin Version:
1.1
Plugin Category:
Gameplay
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Survivors will drop their currenty held item when pounced/pummelled/jockeyed/dragged.
    Old 07-27-2010 , 05:14   [L4D & L4D2] Caught Item Drop
    Reply With Quote #1

    Survivors will drop their currenty held item when they get pounced/pummelled/jockeyed/dragged.
    I "accidentally" made this plugin for my server, I don't think anyone made plugin like this so I'm sharing it here.

    l4d_caughtitemdrop.cfg (Left 4 Dead)
    Code:
    // ConVars for plugin "l4d2_caughtitemdrop.smx"
    
    // Drop Item when pounced?
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_ciw_droponhunter "1"
    
    // Drop Item when dragged?
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_ciw_droponsmoker "1"
    
    // Advertisements after round start delay? 0-disable
    // -
    // Default: "15.0"
    // Minimum: "0.000000"
    // Maximum: "120.000000"
    l4d_ciw_adsdelay "15.0"
    
    // Show info to players that they dropped item? 0-disabled, 1-chat, 2-hint
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d_ciw_showinfo "1"
    l4d2_caughtitemdrop.cfg (Left 4 Dead 2)
    Code:
    // ConVars for plugin "l4d2_caughtitemdrop.smx"
    
    // Advertisements after round start delay? 0-disable
    // -
    // Default: "15.0"
    // Minimum: "0.000000"
    // Maximum: "120.000000"
    l4d2_ciw_adsdelay "15.0"
    
    // Drop Item when pummelled?
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_ciw_droponcharger "1"
    
    // Drop Item when pounced?
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_ciw_droponhunter "1"
    
    // Drop Item when jockeyed?
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_ciw_droponjockey "1"
    
    // Drop Item when dragged?
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_ciw_droponsmoker "1"
    
    // Show info to players that they dropped item? 0-disabled, 1-chat, 2-hint
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    l4d2_ciw_showinfo "1"
    Known issues:
    -double/triple chat messages?!

    Credits:
    -L4D2 Drop's drop code

    Changelog:
    1.0 - Public release
    1.1 - renamed cvar descriptions
    Attached Files
    File Type: txt l4d2_caughtitemdrop.phrases.txt (90 Bytes, 1526 views)
    File Type: sp Get Plugin or Get Source (l4d2_caughtitemdrop.sp - 3016 views - 12.4 KB)

    Last edited by kwski43; 01-13-2014 at 09:30.
    kwski43 is offline
    ghosthunterfool
    Senior Member
    Join Date: Mar 2010
    Old 07-27-2010 , 07:04   Re: [L4D2] Caught Item Drop (1.0)
    Reply With Quote #2

    is this only weapon as in gun o.o wat if i got smoked while healing? wat i drop?
    ghosthunterfool is offline
    kwski43
    Senior Member
    Join Date: Mar 2009
    Old 07-27-2010 , 07:06   Re: [L4D2] Caught Item Drop (1.0)
    Reply With Quote #3

    If you're holding medkit -you will drop medkit, if you're holding pills -you will drop pills, if you're holding m60 -you will drop m60.
    __________________
    kwski43 is offline
    dYZER
    Member
    Join Date: Jan 2010
    Location: Germany
    Old 07-27-2010 , 09:02   Re: [L4D2] Caught Item Drop (1.1)
    Reply With Quote #4

    hehe, funny
    no tank ?)
    and what is, if ur incap
    dYZER is offline
    ghosthunterfool
    Senior Member
    Join Date: Mar 2010
    Old 07-27-2010 , 09:02   Re: [L4D2] Caught Item Drop (1.1)
    Reply With Quote #5

    wat if i am incap and i got pounced by a hunter? will my pistol gone?
    ghosthunterfool is offline
    kwski43
    Senior Member
    Join Date: Mar 2009
    Old 07-27-2010 , 09:33   Re: [L4D2] Caught Item Drop (1.1)
    Reply With Quote #6

    Quote:
    Originally Posted by ghosthunterfool View Post
    wat if i am incap and i got pounced by a hunter? will my pistol gone?
    I think yes.
    Quote:
    Originally Posted by dYZER View Post
    hehe, funny
    no tank ?)
    and what is, if ur incap
    Tank o0? Wth, you mean punched survivor will drop item? okay, can be done
    With incap i was thinking about droping everything xD
    __________________
    kwski43 is offline
    ghosthunterfool
    Senior Member
    Join Date: Mar 2010
    Old 07-27-2010 , 10:09   Re: [L4D2] Caught Item Drop (1.1)
    Reply With Quote #7

    add support for witch ?
    ghosthunterfool is offline
    kwski43
    Senior Member
    Join Date: Mar 2009
    Old 07-27-2010 , 10:16   Re: [L4D2] Caught Item Drop (1.1)
    Reply With Quote #8

    Quote:
    Originally Posted by ghosthunterfool View Post
    add support for witch ?
    With witch I think it will work same as for incap...
    __________________
    kwski43 is offline
    terminator2k2
    Senior Member
    Join Date: Feb 2010
    Old 10-03-2010 , 07:05   Re: [L4D2] Caught Item Drop (1.1)
    Reply With Quote #9

    hi there , can u make this so you dont drop secondary weapon?

    as ive found when you get hit twice and drop primary and secondary weapon, you walk around like a cardboard cut out lol.......till you pick up a weapon....

    i run a 8 player coop server with more zombies and specials and half the bots are walking round like this as they keep getting pounced lol
    terminator2k2 is offline
    kwski43
    Senior Member
    Join Date: Mar 2009
    Old 10-03-2010 , 07:12   Re: [L4D2] Caught Item Drop (1.1)
    Reply With Quote #10

    I'm currently away from any programming, I can pass this plugin to anyone willing to work on this.

    Quote:
    Originally Posted by terminator2k2 View Post
    hi there , can u make this so you dont drop secondary weapon?

    as ive found when you get hit twice and drop primary and secondary weapon, you walk around like a cardboard cut out lol.......till you pick up a weapon....

    i run a 8 player coop server with more zombies and specials and half the bots are walking round like this as they keep getting pounced lol
    This version(attached file) DOES NOT drop secondary weapon (only primary, granade, health, supply item). It should, it's not tested, I hope it will lol.
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d2_caughtitemdrop.sp - 1390 views - 12.2 KB)
    __________________

    Last edited by kwski43; 10-03-2010 at 07:19.
    kwski43 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 07:46.


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