Garry's Mod

Garry's Mod

197 个评价
Weapon Drop
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 快乐, 写实
文件大小
发表于
更新日期
2.149 KB
2019 年 5 月 16 日 上午 7:10
2019 年 5 月 25 日 上午 7:02
4 项改动说明 ( 查看 )

订阅以下载
Weapon Drop

描述
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
热门讨论 查看全部(1)
9
2022 年 1 月 1 日 上午 10:07
Unofficial Bug Report Section
ChaozRage
27 条留言
kisvincze 2023 年 8 月 23 日 上午 8:41 
Zemair 2023 年 6 月 10 日 下午 7:58 
can you do a bind command or a key command? it will be so good
ClankerSpanker98 2023 年 3 月 16 日 下午 6:19 
epic thumbnail
Rozaliya12 2022 年 9 月 8 日 上午 11:16 
此留言正在等待我们的自动内容检查系统分析。在我们证实其内容无害之前(例如试图窃取信息的钓鱼站点链接),留言将暂时隐藏。
Rozaliya12 2022 年 9 月 8 日 上午 10:41 
@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 2021 年 10 月 2 日 上午 11:01 
Works better than other weapon drop addons, but would be nice to see TFA attachment compatibility.
Locurafia 2021 年 4 月 6 日 下午 4:53 
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 2021 年 2 月 5 日 下午 4:21 
this caused me to have no items when i spawn, how do i prevent that or stop it from happening
Xman443 2020 年 8 月 4 日 下午 1:14 
how do you unbind this from a key? Because it wont let me do it from the console
XxX_SashaMLG420_XxX 2020 年 2 月 27 日 上午 10:53 
error with VJ base gun if you drop you can't take gun back (got error):winter2019angryyul: