Garry's Mod

Garry's Mod

76 个评价
Weapon discard/manager
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 武器
插件标签: 快乐, 角色扮演, 写实
文件大小
发表于
更新日期
8.165 KB
2024 年 9 月 25 日 下午 1:14
2024 年 10 月 1 日 上午 2:11
2 项改动说明 ( 查看 )

订阅以下载
Weapon discard/manager

描述
After a month of learning Lua, here is an overhaul of my Right-Click Weapon Removal mod! Made to be more convenient and is now phys-gun friendly!

To discard/give your current weapon, simply right-click while holding the 'e' key

Features
  • An actual custom bind this time
  • No longer lose weapons on death
  • Custom spawn load-out
  • Give, take, and exchange your weapons to any player or npc (and I mean any npc)
  • No more ammo exploits!

As usual, settings are located in the Options tab with the Console Variables shown in the tool-tips!

Update 1.0.1
  • Custom spawn load-out no longer resets after closing the game
21 条留言
爱笑的佐巴扬 7 月 30 日 上午 3:42 
[Weapon discard/manager] lua/autorun/sh_wpn.lua:120: attempt to call method 'SetClip1' (a nil value)
1. v - lua/autorun/sh_wpn.lua:120
2. Call - lua/includes/modules/hook.lua:102
3. PlayerSpawn - gamemodes/base/gamemode/player.lua:251
4. unknown - gamemodes/sandbox/gamemode/init.lua:41
5. Spawn - [C]:-1
6. unknown - gamemodes/base/gamemode/player.lua:101
Vance 2024 年 10 月 25 日 下午 11:34 
Sorry to bug ya.
Is there any way to drop the weapon instead of deleting it?
Andreas 2024 年 10 月 14 日 下午 12:55 
what hud are you using?
Smytsidian 2024 年 10 月 5 日 下午 1:53 
I was using the HL1 sweps mod and a loadout mod at the same time. Whenever I respawn I only get my grenades
Phoque Eughe  [作者] 2024 年 10 月 5 日 下午 1:37 
@gamer I've half figured out the problem and will hope to fix it soon. The bad news being that I may need to reshuffle the programming a bit.
Phoque Eughe  [作者] 2024 年 10 月 5 日 下午 1:36 
@Smytsidian What weapon did you use? From what I can tell, it's likely because the weapon doesn't use primary ammo, or uses that system.
Smytsidian 2024 年 10 月 5 日 上午 9:11 
[Weapon discard/manager] lua/autorun/sh_wpn.lua:120: attempt to call method 'SetClip1' (a nil value)
1. v - lua/autorun/sh_wpn.lua:120
2. Call - lua/includes/modules/hook.lua:96
3. PlayerSpawn - gamemodes/base/gamemode/player.lua:246
4. unknown - gamemodes/sandbox/gamemode/init.lua:41
5. Spawn - [C]:-1
6. unknown - gamemodes/base/gamemode/player.lua:101

What's this about?
Phoque Eughe  [作者] 2024 年 10 月 3 日 下午 2:46 
@gamer, I'll be having a look at this addon in the weekend as I assume it might be something to do with a hook not working as intended
Deca The Bard 2024 年 10 月 3 日 下午 2:18 
for some reason, the addon just refused to remove my weapon even after pressing the bind repeatedly. I have it set to R + RMB, and sometimes i have to click it over and over and over again until it finally removes my weapon, or it just does it instantly
Phoque Eughe  [作者] 2024 年 10 月 3 日 上午 1:06 
@CoolioTrainGamer #Chillin, what are your current settings?