Garry's Mod

Garry's Mod

185 ratings
Weapon Drop
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Realism
File Size
Posted
Updated
2.149 KB
16 May, 2019 @ 7:10am
25 May, 2019 @ 7:02am
4 Change Notes ( view )

Subscribe to download
Weapon Drop

Description
This addon allows for players to drop their weapons.

Features:
- "/drop" chat command
- Works with every weapon
- Keeps ammo in the mag/clip
- Adds to your ammo if you already have the weapon
- In-game customisation features
- Blacklist for weapons that you don't want to be dropped
- Blacklist saves over server restart via data file

Server ConVars:
- "topher_weapondrop_dropondeath" (default = 0)
0 - Don't drop weapons on death
1 - Only drop active weapon on death (excluding blacklisted weapons)
3 - Drop all weapons on death (excluding blacklisted weapons)
- "topher_weapondrop_adminbypass" (default = 0)
0 - Admins can't drop blacklisted weapons
1 - Admins can drop blacklisted weapons
- "topher_weapondrop_weapondecay" (default = 0)
0 - Disable
>0 - the duration after the weapon is dropped before it decays

Client Console Commands:
- "topher_weapondrop_blacklist" - Lists blacklisted weapons in the console
- "topher_weapondrop_blacklist_add" - Adds a weapon to the blacklist
(usage; "topher_weapondrop_blacklist_add weapon_fists")
- "topher_weapondrop_blacklist_remove" - Removes a weapon from the blacklist
(usage; "topher_weapondrop_blacklist_remove weapon_fists")
- "dropweapon" - drops your active weapon
(same as "/drop")

If you have any suggestions feel free to comment them below!

Notes:
- Weapons that do not have a world model will use the soda can model. If you find a weapon that does this comment the weapon and what addon it is from below and I will work on a fix. (I am aware gmod_hands drops as a soda can and this is unavoidable, I recommend just leaving this in the blacklist)

Added:
ConVar for collisions of dropped weapons:
- "topher_weapondrop_droppedcollision" (default = 0)
0 - Normal collisions
1 - Doesn't collide with players
Popular Discussions View All (1)
9
1 Jan, 2022 @ 10:07am
Unofficial Bug Report Section
ChaozRage
27 Comments
kisvincze 23 Aug, 2023 @ 8:41am 
the author ignores, so here is you'r wish @Lukas The Creator
https://steamproxy.net/sharedfiles/filedetails/?id=946373028&searchtext=Weapon+drop
JustLukasBruh 10 Jun, 2023 @ 7:58pm 
can you do a bind command or a key command? it will be so good
Rise of the broken sigma 16 Mar, 2023 @ 6:19pm 
epic thumbnail
xxXX_▻Rozaliya⑫_XXxx 8 Sep, 2022 @ 11:16am 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
xxXX_▻Rozaliya⑫_XXxx 8 Sep, 2022 @ 10:41am 
@Lenny THat would be hard as balls considering the absolute spaghetti that is TFA's code lmao
Too much frustration trying to get it to work
Lenny 2 Oct, 2021 @ 11:01am 
Works better than other weapon drop addons, but would be nice to see TFA attachment compatibility.
Locurafia 6 Apr, 2021 @ 4:53pm 
Sometimes it creates this lua error:
[Weapon Drop] lua/entities/weapon_dropped/init.lua:25: Tried to use a NULL entity!
1. Remove - [C]:-1
2. unknown - lua/entities/weapon_dropped/init.lua:25
Xman443 5 Feb, 2021 @ 4:21pm 
this caused me to have no items when i spawn, how do i prevent that or stop it from happening
Xman443 4 Aug, 2020 @ 1:14pm 
how do you unbind this from a key? Because it wont let me do it from the console
XxX_SashaMLG420_XxX 27 Feb, 2020 @ 10:53am 
error with VJ base gun if you drop you can't take gun back (got error):winter2019angryyul: