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

[CSS] Drop on Death


Post New Thread Reply   
 
Thread Tools Display Modes
Author
bigbalaboom
Junior Member
Join Date: Aug 2013
Plugin ID:
3893
Plugin Version:
3.0.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Drop weapons, ammo, and armor on death.
    Old 09-09-2013 , 06:03   [CSS] Drop on Death
    Reply With Quote #1

    Description:

    By default, when a player dies, he does not drop the pistol if there's a weapon in slot1.
    And only one of four grenades is dropped, with the order of priority: hegrenade -> flashbang -> smokegrenade.

    This plugin allows players to drop weapons including primary, secondary, knife, all 4 grenades, reserve ammo and armor on death.

    There is no extra model for dropped ammo. You only need to walk through a weapon on ground, and if it matches the weapon you own, your reserve ammo will be filled out.

    Cvars:

    v1.0.0

    Quote:
    sm_drop_all_on_death
    sm_drop_on_death Toggles plugin on and off.

    sm_drop_knife_on_death Toggles dropping knife on death.

    v2.0.0

    Quote:
    sm_drop_armor_on_death Toggles dropping armor on death.

    sm_drop_armor_min Minimum ammount of armor to enable armor drop.

    sm_drop_armor_sprite Toggles sprite and physical model for dropped armor.

    sm_drop_armor_model Model used for dropped armor. (default: models/props/cs_italy/orange.mdl)

    sm_drop_armor_model_resize Size of model to be scaled.

    sm_drop_armor_model_voffset Vertical offset of armor model.

    sm_drop_armor_pickup_sound Sound used for picking up armor. (default: items/itempickup.wav items/ammopickup.wav)

    sm_drop_armor_respawn_remove Toggles removing dropped armor on resapwn.
    v3.0.0

    Quote:
    sm_drop_armor_depreciation Percentage of depreciation for dropped armor.

    sm_drop_ammo_on_death Toggles dropping ammo on death.

    sm_drop_ammo_pickup_sound Sound used for picking up ammo. (default: items/itempickup.wav)
    Screenshots:
    .
    Click image for larger version

Name:	drop1.jpg
Views:	1842
Size:	77.7 KB
ID:	125763
    Click image for larger version

Name:	drop2.jpg
Views:	1668
Size:	80.3 KB
ID:	125764
    Click image for larger version

Name:	drop3.jpg
Views:	1377
Size:	80.0 KB
ID:	125765
    Click image for larger version

Name:	drop4.jpg
Views:	1189
Size:	66.7 KB
ID:	125766

    Changelog:

    v3.0.0 - Added dropping ammo on death.
    v2.1.0 - Added support for suicide (kill/explode) and killing by world.
    v2.0.0 - Added dropping armor on death.
    v1.0.0 - Initial release.



    _____
    Attached Files
    File Type: sp Get Plugin or Get Source (drop_on_death.sp - 1649 views - 13.6 KB)
    File Type: sp Get Plugin or Get Source (drop_on_death_1.0.0.sp - 1086 views - 2.6 KB)
    File Type: sp Get Plugin or Get Source (drop_on_death_2.0.0.sp - 1050 views - 9.8 KB)
    File Type: sp Get Plugin or Get Source (drop_on_death_2.1.0.sp - 1709 views - 10.2 KB)

    Last edited by bigbalaboom; 09-22-2013 at 13:14. Reason: Plugin Update
    bigbalaboom is offline
    relicek
    Member
    Join Date: Mar 2012
    Old 09-11-2013 , 11:49   Re: [CSS] Drop Weapons on Death
    Reply With Quote #2

    good plugin, is there somehow possibility to make rest of armor of dead player dropable with some model?
    relicek is offline
    bigbalaboom
    Junior Member
    Join Date: Aug 2013
    Old 09-13-2013 , 13:17   Re: [CSS] Drop Weapons on Death
    Reply With Quote #3

    Quote:
    Originally Posted by relicek View Post
    good plugin, is there somehow possibility to make rest of armor of dead player dropable with some model?
    As you requested, I'v updated the plugin to v2.0.

    Let 'em drop the armor!
    bigbalaboom is offline
    relicek
    Member
    Join Date: Mar 2012
    Old 09-16-2013 , 05:37   Re: [CSS] Drop on Death
    Reply With Quote #4

    great, some suggestions:

    1. Default sound should be i think defuse kit sound, its same as buying armor on spawn, if i remember right, and make option for who will hear it (all, only player or nobody).

    2. Make option in cfg for team kill drop and suicide, so if teammate kills teammate it will not drop and it will not drop on suicide (afk, slay...)

    3. Make option for random amount of armor picked up, like in healthkitfromdead plugin, example: i will choose 5-25 AP in config, so player will get between 5-25 AP when picked up armor. Basicly it will be not needed to drop exact armor amount of dead player but only drop item with random or exact number of gaved AP (armor points). Make option to choose random from number to number and exact number or armor (for example it will give 25 AP all the time or so). And make option for max received AP, again like in healthkitfromdead plugin, that player can pick up armor but for example in config will be set to max 75 AP, so player cant get full body armor again in round, if you know what i meen

    4. And last one that will be nice, again like in healthkitfromdead plugin, make message in chat, hint window, which will say something like: You picked up Body Armor + 17 AP.

    Hm for now its all from me, i like this idea for droping armor so hope you will make it even better
    relicek is offline
    bigbalaboom
    Junior Member
    Join Date: Aug 2013
    Old 09-22-2013 , 13:05   Re: [CSS] Drop on Death
    Reply With Quote #5

    Plugin updated to v3.0.0

    Quote:
    Originally Posted by relicek View Post
    great, some suggestions:
    ...
    Thanks for the suggestions, relicek.

    1. Changed the deault sound for picking up armor to ammopickup.wav.
    2. I want to keep this plugin close to the real world. No matter who's the killer, as long as a player dies, items should be dropped.
    3. v3 added another cvar (sm_drop_armor_depreciation) to let users configure what percentage they want to be left from the remaining armor.
    4. I think sound is enough to notify players something has changed.
    bigbalaboom is offline
    GrO
    Veteran Member
    Join Date: Jun 2010
    Location: Poland
    Old 04-27-2015 , 09:28   Re: [CSS] Drop on Death
    Reply With Quote #6

    Fantastic plugin bigbalaboom. I was always missing this functionality in CS, thanks.
    GrO is offline
    GrO
    Veteran Member
    Join Date: Jun 2010
    Location: Poland
    Old 05-10-2015 , 21:51   Re: [CSS] Drop on Death
    Reply With Quote #7

    Is it possible to make the pickup sounds hearable for near placed players (like in ammo from dead or healthkit from dead plugins)?
    GrO is offline
    last_hope
    Senior Member
    Join Date: Dec 2011
    Old 05-24-2015 , 03:08   Re: [CSS] Drop on Death
    Reply With Quote #8

    What about CS:GO?
    __________________
    last_hope is offline
    Send a message via ICQ to last_hope
    GrO
    Veteran Member
    Join Date: Jun 2010
    Location: Poland
    Old 06-18-2015 , 19:49   Re: [CSS] Drop on Death
    Reply With Quote #9

    I'm using this plugin for few weeks now and it gave me one error:

    PHP Code:
    L 06/18/2015 20:45:44SourceMod error session started
    L 06
    /18/2015 20:45:44Info (map "awp_india_v2") (file "errors_20150618.log")
    L 06/18/2015 20:45:44: [SMNative "GetEdictClassname" reportedInvalid edict (-- -1)
    L 06/18/2015 20:45:44: [SMDisplaying call stack trace for plugin "drop_on_death.smx":
    L 06/18/2015 20:45:44: [SM]   [0]  Line 315, /home/groups/sourcemod/upload_tmp/phpR5dGbw.sp::DropItems()
    L 06/18/2015 20:45:44: [SM]   [1]  Line 305, /home/groups/sourcemod/upload_tmp/phpR5dGbw.sp::Event_PlayerHurt()
    L 06/18/2015 20:54:09Error log file session closed
    MMS & SM Plugins
    GrO is offline
    Allower
    Senior Member
    Join Date: Sep 2013
    Location: SourceEngine
    Old 04-25-2016 , 00:34   Re: [CSS] Drop on Death
    Reply With Quote #10

    Confirmed plugin works on CS: GO
    But same as [CS:S/CS:GO] Equipment Drop (duplication bug fixed) (10/08/2013 Ver 1. - https://forums.alliedmods.net/showthread.php?p=1877369

    Not dropped: molotov,incendiary,smoke,flash,he and taser

    Both plugins have problems with drop this items in CS: GO
    Allower 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 02:49.


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