Garry's Mod

Garry's Mod

Weapon discard/manager
21 Comments
Vance 25 Oct, 2024 @ 11:34pm 
Sorry to bug ya.
Is there any way to drop the weapon instead of deleting it?
Andreas 14 Oct, 2024 @ 12:55pm 
what hud are you using?
Smytsidian 5 Oct, 2024 @ 1:53pm 
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  [author] 5 Oct, 2024 @ 1:37pm 
@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  [author] 5 Oct, 2024 @ 1:36pm 
@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 5 Oct, 2024 @ 9:11am 
[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  [author] 3 Oct, 2024 @ 2:46pm 
@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 3 Oct, 2024 @ 2:18pm 
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  [author] 3 Oct, 2024 @ 1:06am 
@CoolioTrainGamer #Chillin, what are your current settings?
A Very Unauthorized Thing 2 Oct, 2024 @ 6:44pm 
The mod is bugging out and removes most of my weapons after death
Phoque Eughe  [author] 1 Oct, 2024 @ 2:25pm 
@ your service, I'll see what I can do once I've finished off another mod I'm making and may release soon.
@ your service 1 Oct, 2024 @ 2:17pm 
This addon is amazing for roleplaying. I love it! :health:

My only suggestion for improvements is that i think it would be better for mod compatibility if the bind was press or hold sensitive rather than being dependent on different input combinations.
(For instance the ported CSGO weapons use the exact same input of [Use] + [attack2] for inspect animations.)

Idk how hard it would be but i think it would function better with a single keybind thats press or hold sensitive.
(Quickly tapping G would holster your weapon while holding G down could drop it.(Similarly to the drop weapon addon) Pressing G (or any attack key) while empty handed would pull out your holstered weapon or last other weapon used if it was dropped and removed from inventory.

Of course its up to you, even as is i think its great.
Phoque Eughe  [author] 1 Oct, 2024 @ 1:12am 
@Dr Dick, that's perfectly fine. It doesn't seem to affect most people, so it might just be a hidden bug considering how broken the game can be sometimes. I unfortunately can't do much about it if I can't replicate the issue and GMod doesn't return any errors for it.
⛧Megalomaniac⛧ 30 Sep, 2024 @ 8:46pm 
as nice as the options in this look, i'm having the same issue as Nyami and i am not factory resetting my Gmod for a third time, i've got a lot of addons that would be lost. ggs i'll just use the old version
spjohnson12 29 Sep, 2024 @ 12:11pm 
Thank you very much Tyranee!
Phoque Eughe  [author] 29 Sep, 2024 @ 3:37am 
@Nyami, I tried to replicate the issue using your exact bind but it seems to delete as intended for me. I assume you're holding down the button and have your secondary attack bound to right-click?

I'm not sure what the cause would be since I can't seem to replicate the issue myself. At worst, it may be caused by leftovers of a deleted addon which seems to be a common issue that tends to be solved with GMod's factory reset at the cost of refreshing your settings.
Gordon, GORDAN! 28 Sep, 2024 @ 8:41pm 
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3339498880&searchtext=

I wonder if you could make the Blaster from this a usable weapon?
Konata Izumi 28 Sep, 2024 @ 7:00pm 
I couldn't get the weapon discard to function on my end. I bound the key to n, and I pressed it and right-click at the same time, but nothing happened. I'll check tomorrow if this is some conflict with another addon, but I just wanted to report this now since the old version of this addon works normally.
Deca The Bard 26 Sep, 2024 @ 12:40pm 
W sigma
Lt. Nazrin 26 Sep, 2024 @ 1:53am 
quite interesting, good work!!!
Phoque Eughe  [author] 25 Sep, 2024 @ 1:57pm 
Again, thank you all for supporting my addons! It's been a really nice hobby/learning experience and I'm pretty happy with what I've been able to make over the course of a month.

I have a few more mod ideas in mind before I probably attempt to make a gamemode. However, I do have one that's 80% made so that's neat