Hammer rope and Garry's Mod rope

Joined
Feb 21, 2005
Messages
304
Reaction score
0
Ok, I call bullshyte! I've been working with ways to make hl2 rope made in hammer to work close to how a real rope works for a long time now. My final goal is to create a scene in my mod whereby a character gets hanged. ive read everywhere (and found for myself) that in hammer, you cant just atatch both ends of a rope to 2 objects. All they do in that case is follow those 2 objects, theres no physics constraint of any kind or any slack left on the ground when those 2 points get closer to eachother. So I have to use some kind of constraint to hang a ragdoll from it's neck. A ball socket or a length constraint works fine if all you want is a ragdoll thats already been hung. So gave up for a while.

Then one day I stumbled upon Garry's mod. The rope gun in that mod creates rope that is absolutely perfect.

Rope stretched out, no slack:
gm_construct0000.jpg


Objects brought closer, slack falls to ground:
gm_construct0001.jpg


How can I setup my rope like this in hammer for my own mod? Is there something new or am I just missing something? thanks for your help.
 
Er. Parent one end of the rope to the GMan, then give the rope some extra slack (in the move_rope's properties)?
 
Isn't there some kind of "Export to Hammer" feature in Garry's Mod?
 
OK, so I tried that and yes the slack is working properly. Now i have another problem. If i used it as-is the ragdoll wouldnt be hung, he just hits the ground cz the rope has no constraint. I tried to use a phys_lengthconstraint to keep the length under a certain measurement, but all that did was make gman bounce all around, and I added a constraint system manager and set the proper fields in the lengthconstraint but that made no difference. So it still does not act like Garry's mod rope, instead it acts like a rubberband. THanks for your help though.
 
yeah there is an export to hammer option, ill try that next. BTW, Diluted, i like the NIN reference in your signiature.
 
Maybe you should give the hanging NPC some more mass so that he doesn't fly around as if on a rubber band.
 
I fixed it. yet now I have another problem. I cant get the NPC to be hung by his neck, he just hangs from his body center. i tried an info_mass center, didnt work. Tried attatching things to the NPC's "foreward" attatchment which is near its neck and attatching the rope and constraint there, but that didnt work either, nobody gets executed by hanging by the belly lol! lil help?
 
Back
Top