Garry's Mod

Garry's Mod

55 个评价
Stik's Weapon Drop and Drop Item on Death Scripts
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 角色扮演, 写实
文件大小
发表于
更新日期
2.177 KB
2020 年 11 月 16 日 下午 3:10
2021 年 1 月 31 日 下午 1:54
9 项改动说明 ( 查看 )

订阅以下载
Stik's Weapon Drop and Drop Item on Death Scripts

在 devStik 的 1 个合集中
Random Stuff
106 件物品
描述
A simple weapon drop script
Only two commands: a client command, "stik_dropweapon", which drops the user's currently held weapon. Adding a number between -10 and 10 determines its launch velocity, and if no number is given, it will automatically be 10. The other is a server convar, "sv_stik_weapondrop", and that controls whether any player is permitted to drop a weapon with the previous command or not.

An extra feature
Two more convars exist when a player decides they want to drop their weapon on death, and the client only needs to run "cl_stik_deathdropitem", which allows the user to drop their currently held item on death. However, some server owners may want to configure this, so there is "sv_stik_forcedeathdrop", which is normally set to 0. Setting it to -1 will disable item death drops for everyone, and setting it to 1 will force it on for all players. Note: Having this on with the super physcannon will not work, because the item will disintegrate on death.

Planned ideas:
  • Add drop weapon on death convar
  • Remove reliance on net messages
  • Add ability to change the force of the weapon drop
Please leave any suggestions in the comments below or in the discussions!
Make sure to report any bugs in the Bug Reports discussion!
热门讨论 查看全部(1)
4
2022 年 8 月 11 日 下午 5:27
置顶: Bug Reports
devStik
30 条留言
Bonniboi42 4 月 13 日 上午 11:31 
appreciate the mod bro
:steamthumbsup:
Teimo Väinämö Pielinen 2024 年 12 月 11 日 上午 2:45 
could you make it so that npcs also drop weapons on death?
devStik  [作者] 2024 年 2 月 28 日 下午 12:42 
just make it a bind
pokomm24 2024 年 2 月 26 日 上午 4:49 
make it a key not consle command
TexasOmertosa 2024 年 1 月 1 日 上午 1:05 
very nice Compared to other modules, this module is more compatible
obsidian5420 2023 年 10 月 22 日 下午 2:27 
can you add a setting that controls how long until the dropped weapon vanishes?
N00bGsav™ 2023 年 5 月 25 日 下午 2:35 
which one is the one where when the player dies they drop their weapon
devStik  [作者] 2022 年 9 月 14 日 下午 9:40 
it should
comte de swag 2022 年 9 月 14 日 下午 3:54 
does it stay when you restart?
devStik  [作者] 2022 年 3 月 20 日 上午 2:06 
put it in Bug Reports with actual information, otherwise I can't fix your issue