Garry's Mod

Garry's Mod

[TTT] Weapon Quick-Swap
8 Comments
ValsdalV  [author] 28 Jun, 2024 @ 5:03am 
There's multiple ones already, like for example 'Manual Weapon Pickup' by Sofisaur.

I had to limit this addon to TTT only just because there already was at least that one for the other gamemodes
BonegraVE 27 Jun, 2024 @ 10:54pm 
Someone need to make this addon for sandbox.
ValsdalV  [author] 17 Mar, 2023 @ 2:32pm 
That's odd, I made sure this addon doesn't load when the active gamemode is not TTT. In fact, it works by using functions that are only defined in TTT, so it must be something else that's letting you swap weapons
⸸ₓナイトメアₓ⸸ 17 Mar, 2023 @ 12:20pm 
oh nono i mean i somehow had this just work in sandbox, i didnt enter the files or anything. although i dont know why this worked
ValsdalV  [author] 17 Mar, 2023 @ 11:02am 
If you already extracted the code of this addon from the .gma file to make it work for sandbox, then instead of making the player drop the weapon

[code]Player:DropWeapon(Weapon)[/code]

just remove that gun:

[code]
if IsValid(Weapon) then
Weapon:Remove()
end
[/code]
⸸ₓナイトメアₓ⸸ 17 Mar, 2023 @ 3:58am 
i see where your coming from, you dont have to. it was just a thought because i somehow got this to work for sandbox andi was messing around with friends and over a good 20 minutes or so the game started to lagg because the weapons kept piling on top of each other
ValsdalV  [author] 16 Mar, 2023 @ 10:36am 
Something like that can potentially ruin the game for other players, for example running around the map using it to delete weapons before anyone else has a chance to pick them up.

I guess it can be nice to have when playing with friends, I'll see what I can do
⸸ₓナイトメアₓ⸸ 13 Mar, 2023 @ 4:51pm 
is there a way to have a swapped weapon disappear forever? like in cod zombies for example, swapped weapons are gone for good