Hanging a ragdoll from a rope

Tutorial collection, comprehensive listings on main site.

Hanging a ragdoll from a rope

Postby Tutorial on Mon Mar 07, 2005 10:06 pm

category
General Half-Life 2/Entities

description
Add a body or other ragdoll to a rope.

keywords
ragdoll, rope, hanging.

Tutorial re-written 18/08/09

This tutorial is for anyone who wants to hang a ragdoll from a rope. Sorry, pictures will be lacking as this isn’t really that difficult.

Entities you’ll need:

  • Keyframe_rope
  • Move_rope
  • Prop_ragdoll
  • Phys_ballsocket

Let’s get started, shall we? Place a keyframe_rope in your map intersecting a surface, this will be the origin of your rope. In the properties tab name it rope1, change “Next Keyframe” to rope2 and change the “Slack” to zero.

Now place a move_rope into your map, this will be the endpoint for your rope. In the properties tab name it rope2 and change the “Parent” to ragdoll.

Place a prop_ragdoll in your map. In the properties click “World Model”, for this tutorial I used corpse1.mdl, and name it ragdoll. Place the corpses’ feet level with the move_rope entity.

Image

Almost there, place a phys_ballsocket in the exact same spot as your keyframe_rope. In the properties tab set “Entity 1” to ragdoll.

Image

There you have it, a corpse swinging from the ceiling for all to shoot or smack around like a disgusting piñata.

Image

- Horyo
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Postby CRAZY-MAN on Sat Mar 19, 2005 4:07 pm

what if u use a lamp when i rope them together the raope willnot keep it up when the lamp hit the floor the wire streaches to fix it but i want it to not streach but the wire to keep the lamp up???
Image
I am 68% addicted to Counterstrike. What about you?
CRAZY-MAN
Member
Member
 
Joined: Wed Nov 10, 2004 1:08 pm

Postby Swatje on Sat Mar 19, 2005 4:35 pm

simple:

light_spot
point_spotlight parented to a prop_physics with light model
move_rope at the ceiling
keyframe_rope parented to you prop
phys_ballsocket with as entity 1 your prop

at move_rope

next keyframe = the name of keyframe_rope

try it, not 100 percent shure, maybe someone smarter than i can correct me :p
Swatje
Been Here A While
Been Here A While
 
Joined: Wed Nov 10, 2004 4:40 pm

Postby Someth|ng W|cked on Thu Mar 24, 2005 8:53 am

You cant use that technique in multiplayer because of the serverside/clientside issues, thats why u cant parent a physics object to anything
User avatar
Someth|ng W|cked
Regular
Regular
 
Joined: Thu Mar 24, 2005 7:48 am

Postby Rakkerzero on Sun May 29, 2005 10:07 pm

Can this trick be used for a ropebridge???
User avatar
Rakkerzero
Member
Member
 
Joined: Mon Apr 18, 2005 7:27 pm
Location: Netherlands

Postby Grim Reaper on Mon May 30, 2005 9:40 am

Yes but for that, you will need to set the bridge as a func_physbox, and get the ropes to snap. Or something else, for instance, and output on a button that kills the ropes.
Grim Reaper
May Contain Skills
May Contain Skills
 
Joined: Mon May 02, 2005 9:40 am
Location: Its this place, with air, and buildings, and there is lots of concrete...

Postby Grim Reaper on Sun Jun 26, 2005 1:54 pm

If i was trying to get a combine to hang from a rope is there anything i should try, im using a npc_combine_s, but if i set the model to "ragdoll" and i have a move_rope at the top and a keyframe_rope at the bottom, in between i have a phys_ragdoll constraint, entity 1 is my combines name, and entity 2 is my keyframe_rope. But because i cannot parent the npc_Combine_s he is falling to the ground.
Mapper
jman wrote:Blocky, yet good.

Image
Grim Reaper
May Contain Skills
May Contain Skills
 
Joined: Mon May 02, 2005 9:40 am
Location: Its this place, with air, and buildings, and there is lots of concrete...

Postby iMoogle on Fri Sep 02, 2005 2:17 am

Can you add a ragdoll to a rope that has both ends connected to a wall?

like this:
|------o------|

| = wall
o = ragdoll
- = rope
iMoogle
Dumpling
Dumpling
 
Joined: Fri Sep 02, 2005 2:16 am
Location: Portland, OR

Postby Cr4ig on Sat Sep 03, 2005 10:18 am

Yes - You can have as many ropes as you want.
Image
Cr4ig
Senior Member
Senior Member
 
Joined: Mon Nov 08, 2004 10:55 pm

Postby Nav on Sun Nov 20, 2005 11:00 pm

Can you have a ragdoll being dragged on a rope connected to an npc like a helicopter? I've tried countless times, but the ragdoll just falls through the floor and the rope stretches instead of him getting dragged.
User avatar
Nav
Been Here A While
Been Here A While
 
Joined: Sun Dec 05, 2004 3:53 am
Location: Washington State

Postby Blink on Sun Nov 20, 2005 11:37 pm

You may need to parent a phys_ragdollconstraint to the moving entity, and then parent the NPC to that as per tutorial, unless you already are.
User avatar
Blink
Cool 'n that
Cool 'n that
 
Joined: Fri Oct 08, 2004 4:16 pm
Location: UK

Postby Avenged7Fold on Mon Nov 21, 2005 10:23 am

when I do it the ragdoll moves but the rope doesnt lol
Avenged7Fold
Regular
Regular
 
Joined: Tue Nov 15, 2005 1:17 pm
Location: Ohio

Postby Avenged7Fold on Mon Nov 21, 2005 12:21 pm

the rope goes through my map...wtf...and it doesnt go to the ragdoll
Avenged7Fold
Regular
Regular
 
Joined: Tue Nov 15, 2005 1:17 pm
Location: Ohio

Postby Sauce on Mon Nov 28, 2005 2:35 am

You guys are all so crude. Why not hang a tire from the rope instead? Then you've got yourself an instant tyre swing! much more fun than hanging ragdolls because you can actual pick up the tire and shoot it at people with the grav gun (assuming your mapping for HL2 or Deathmatch)!
Image
Blink wrote:Do you watch porn and decide you don't need to have sex because you've seen the ending? :-D

zombie@computer wrote:what retarded countries measure in stones anyway?
or feet? or inches? Your dick is a lot longer in cms
User avatar
Sauce
Senior Member
Senior Member
 
Joined: Sat Nov 26, 2005 4:36 am
Location: Australia

Postby FatCat on Mon Dec 12, 2005 7:49 pm

ok.. this is mostly related...

I have a wench, with a rope hanging from it.. i want to attach a func_breakable to the end of my rope and have it swing around when its shot...

if i eliminate my last keyframe_rope and add an entity to it i can have it swing like a hanging lamp(prodigy)... but whenever i attach anything to my rope.. it jus sits there.


so far my entities go in this order:
i start with a move_rope, then move through to keyfram_rope #6
at the joint of keyframe_rope #5 i attached my ballsocket and put in a small nodraw surface to attach it to

Image

i cant get this to work and its driving me crazy..
FatCat
Dumpling
Dumpling
 
Joined: Mon Dec 12, 2005 7:24 pm
Location: Parts Unknown
Next

Return to Tutorials

Who is online

Users browsing this forum: No registered users