Garry's Mod

Garry's Mod

Streamlined Dragging
39 Comments
coltonchancecarlton 29 Dec, 2024 @ 2:36pm 
make it easier to bind and make the animation you really let me down
AstoraNoble 31 Oct, 2024 @ 8:39am 
binding the key just makes me shoot and switch weapons interchangably
FERNANDEZ 6 Jul, 2024 @ 6:14pm 
how to unbind
NotSoDeadly 30 Jun, 2024 @ 10:48pm 
i cannot rotate the ragdoll with my physgun anymore :( help plz
AWACS "Allegiance" 26 Jan, 2024 @ 4:08am 
it's not a key, it's that you're binding BUTTONHERE to.
vladdy put 16 Dec, 2023 @ 6:44am 
sigma:steamsalty:
106 11 Dec, 2023 @ 10:34am 
i think right alt?
zzombhunter 10 Dec, 2023 @ 9:18am 
i know i sound stupid but what key is alt2?
гриб 10 Dec, 2023 @ 3:57am 
map on video?
morm 9 Dec, 2023 @ 11:39pm 
what weapon pack is that M1911 from?
pepsi.securiti31@gmail.com 8 Dec, 2023 @ 8:35am 
"SİGMA 🗿" 💀💀
gurg 8 Dec, 2023 @ 4:41am 
cope
METAL BAT 8 Dec, 2023 @ 1:10am 
just make bind e
METAL BAT 8 Dec, 2023 @ 1:10am 
bro make the bind e and ctrl crouch
Coffee Man  [author] 8 Dec, 2023 @ 12:20am 
Sounds like a skill issue to me.
METAL BAT 7 Dec, 2023 @ 11:22pm 
bro i need fucking shit bind in ur damn mod where is fucking bind ur mod not working i cant do realism videos because of ur cringe bind
Castle Crasher 7 Dec, 2023 @ 1:20pm 
how do i bind
Schmucko Fcko 6 Dec, 2023 @ 6:24pm 
@blueJ4ykb just rebind it
Retro Memories 6 Dec, 2023 @ 3:23pm 
essential for lasagna stealth missions
Ezekiel 6 Dec, 2023 @ 11:57am 
the ragdoll physics.... i need it, like... rn
khelwi 6 Dec, 2023 @ 4:18am 
what map is that, it reminds me of silent hill 2
Shadow 6 Dec, 2023 @ 2:13am 
Conel Angus chilll
Rebel 5 Dec, 2023 @ 6:39am 
which ragdoll physics are you using?
beet eater 4 Dec, 2023 @ 10:43am 
can't you just fuckin make it E...?
WorldlyRook709 4 Dec, 2023 @ 9:31am 
please make a convar to disabled the physgun to use of this addon, because now im slowed every single time i use the physgun on anything
Guy 4 Dec, 2023 @ 9:16am 
Which ragdoll physics are you using in your showcase videos? They seem different from the regular HL2 ones
Coffee Man  [author] 4 Dec, 2023 @ 8:46am 
:steamhappy:
certainly and boldly black 4 Dec, 2023 @ 8:45am 
Fair Enough :steamhappy:
Coffee Man  [author] 4 Dec, 2023 @ 8:25am 
certainly and boldly black 4 Dec, 2023 @ 6:29am 
you can do "concommand.add("+somecommand", function() state = true end)" and "concommand.add("-somecommands", function() state = false end)" which would achieve what you want i think. the latter concommand wont run until you release the bind.
Nuclear Swag 3 Dec, 2023 @ 2:21pm 
There really should be a mod that shows your c_hands holding the ragdoll while dragging it.
YT87 3 Dec, 2023 @ 1:21pm 
#relatable
Zoomer Dark Mage 3 Dec, 2023 @ 1:19pm 
Which ragdoll physics are you using?
Lombaxtard 3 Dec, 2023 @ 6:03am 
I get what you were trying to do, hence it's even more weird you were having problems with +commands. VManip Armor Plates&QuickNade and others, Overhauled Radial Menu, Arctic's Radial Binds, Simple Leaning - all use +binds that require holding to be active and act the exact same way as, say, +walk and -walk would in the base game
Coffee Man  [author] 3 Dec, 2023 @ 5:36am 
You can make custom binds, and I've done so in the past (EG. quick throwing hand grenades), but that's for just pressing a button. This one needs to detect if you're pressing AND holding the button. I tried doing a custom bind first, but the code would simply not detect if I was holding a button.

So I had to resort using a vanilla game function to instead detect if I'm holding and pressing the button (after all, TFA also does too so I guess it's the most robust way of doing it). It's a solution that works flawlessly for me (and apparently for a lotta people, seeing how this little useless gimmick got decently popular within 24 hours of release).

Anyone who doesn't like my approach are more than welcome to edit my code and improve it further, it's not like I stop people from improving my scripted addons further, in fact I encourage it. In a heavily modded game, you're bound to run into conflicts between mods sooner or later.
Lombaxtard 3 Dec, 2023 @ 5:22am 
But people make custom +smth commands all the time, and have done successfully throughout gmod's history..? Or is your code strictly requires this approach because of interacting with physgun somehow? Doesn't sound too reasonable, but whatever it is then I guess
Coffee Man  [author] 3 Dec, 2023 @ 4:39am 
It's either gonna be +alt1 or +alt2 as those are the only 2 vanilla-friendly binds which can be used by the game's code to detect KeyPress and KeyRelease afaik. +alt2 conflict with something, +alt1 is going to conflict with something else.
Lombaxtard 2 Dec, 2023 @ 11:40pm 
Can you rename the command? "+alt2" is already used by Tactical Leaning + the original TFA Leaning addon for a while now
GoodFishMan 2 Dec, 2023 @ 10:06am 
bro you gave me flashbacks to that hl2 mod, underhell,also really cool addon