Attaching a light prop to a cable

Attaching a light prop to a cable

Re: Attaching a light prop to a cable Posted by Addicted to Morphine on Fri Apr 8th 2005 at 5:17pm
Posted 2005-04-08 5:17pm
3012 posts 529 snarkmarks Registered: Feb 15th 2005
Hello everyone,

I did a quick search and there was a somewhat relevant thread, but it
addressed the more complex issue of a light that swings like a pendulum
a la de_prodigy. I don't wan't to do this. Instead all I
want is for my prop to swing gently with the cables, so it appears as
if the prop is actually attached, not just floating in mid-air.
Is there an easy way to do this?

Here is a picture of what I'm trying for. Keep in mind I want the
props to sway gently with the cable, but I don't wan't it to move when
shot.

User posted image

Forgive me if there is a simple solution that I've overlooked.

Thanks in advance.
Re: Attaching a light prop to a cable Posted by Addicted to Morphine on Fri Apr 8th 2005 at 9:29pm
Posted 2005-04-08 9:29pm
3012 posts 529 snarkmarks Registered: Feb 15th 2005
Edited, as suggested by omegaslayer.

I found the answer here: http://www.hl2world.com/wiki/index.php/Dynamic_Lights

If you follow that guide you just have to do some minor tweaking to get the result I desired.

If anyone wants to know how to make a light that hangs between two cables... this is what I've learned:

You have to create a move_rope entity and then a keyframe_rope at the
point where you want the light to be hung. Then you create
another keyframe rope opposite the move_rope entity. You make the
middle keyframe_rope the parent of the light prop you want to use, and
then you make the light prop the parent of a light_dynamic. The
light prop should also be a prop_physics_multiplayer. Also, you
need to add phys_pulleyconstraint for both segments of cable to keep
the light from dropping to the ground in game. For the first
segment of cable the phys_pulleyconstraint should have the first entity
as move_rope, and the second as the light prop (you have to name all
your entities in order to fill in these two fields). For
the second cable the first entity is keyframe_rope and the second is
the light prop. Messing around with the slack settings on both
cables will obviously alter the amount the light prop hangs and
stretches when shot. You will probably need to mess around with
the settings of the light_dynamic in order to make it look
convincing.

In the end however, I've decided the light suspended by two cables
hanging in the middle just looks hokey no matter you do. I'll
stick to different lighting methods in the future.
Re: Attaching a light prop to a cable Posted by satchmo on Sat Apr 9th 2005 at 12:13am
satchmo
2077 posts
Posted 2005-04-09 12:13am
satchmo
member
2077 posts 1809 snarkmarks Registered: Nov 24th 2004 Occupation: pediatrician Location: Los Angeles, U.S.
I think only the administraters can delete threads.

But don't worry about it. There might be others who'll find this thread helpful.
Re: Attaching a light prop to a cable Posted by omegaslayer on Sun Apr 10th 2005 at 3:08am
omegaslayer
2481 posts
Posted 2005-04-10 3:08am
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
Mark you answer as a possible answer, then give your self the credit
for ansering it (yes you can do it!), then when someone else comes
along they will find the answer here.