gas valve like those in Ravenholm

gas valve like those in Ravenholm

Re: gas valve like those in Ravenholm Posted by austin316hockey on Sun Dec 19th 2004 at 1:37pm
austin316hockey
2 posts
Posted 2004-12-19 1:37pm
2 posts 0 snarkmarks Registered: Dec 19th 2004 Occupation: Writer Location: Canada
Ok. I'm trying to set up a gas valve control like you see in Ravenholm, with the propane fire traps. I've tried using the func_rot_button combined with the valve wheel mesh (found those in the 'pipes' folder).

Of course, this doesn't want to work at all. Anyone know how to do this?
Re: gas valve like those in Ravenholm Posted by azelito on Sun Dec 19th 2004 at 1:50pm
azelito
570 posts
Posted 2004-12-19 1:50pm
azelito
member
570 posts 127 snarkmarks Registered: Aug 8th 2002 Occupation: Wierdness Location: Sweden
If it still works as it did in HL, you need a origin brush. Make a block and texture it with the origin texture (dont know exactly what its called but its bound to be under tools/), place it at the point you want the wheel to spin around. Take the origin and the rest of the stuff you want and make them the same entity, the wheel will spin around the origin.

I suppose if you want a model to be the wheel you can make an invisible func_rot_button and a origin connected to it and then put a prop model thing at it, which you cant move, and put its parent to the valve. I dunno if it works but its worth a try.
Re: gas valve like those in Ravenholm Posted by Leperous on Sun Dec 19th 2004 at 2:21pm
Leperous
3382 posts
Posted 2004-12-19 2:21pm
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
Make the button with a prop_dynamic entity, and set its parent to an invisible func_rot_button (i.e. covered with nodraw texture). You'll probably want the "toggle" flag on the button ticked, and either x or y-axis too?

You don't need origin brushes anymore, as you can specify the origin as an entity property...
Re: gas valve like those in Ravenholm Posted by DrGlass on Sun Dec 19th 2004 at 11:35pm
DrGlass
1825 posts
Posted 2004-12-19 11:35pm
DrGlass
member
1825 posts 632 snarkmarks Registered: Dec 12th 2004 Occupation: 2D/3D digital artist Location: USA
Make the button with a prop_dynamic entity, and set its parent
to an invisible func_rot_button (i.e. covered with nodraw texture).
You'll probably want the "toggle" flag on the button ticked, and either
x or y-axis too?

You don't need origin brushes anymore, as you can specify the origin as an entity property...
yeah, once you select the func_rot_button, make sure helpers are on
(top right near the "run" button) and you will see a circle in the
middle of the object, drag that to the point you want the axis to be
and your done.
Re: gas valve like those in Ravenholm Posted by austin316hockey on Mon Dec 20th 2004 at 10:16am
austin316hockey
2 posts
Posted 2004-12-20 10:16am
2 posts 0 snarkmarks Registered: Dec 19th 2004 Occupation: Writer Location: Canada
Thanks for the help, everyone. Got it to work perfectly:
  • func_rot_button painted with the nodraw texture named hyd_valve_01
  • prop_dynamic entity with the wheel model parented to hyd_valve_01
  • toggle, both x-axis and y-axis, and the 'use activates' flags checked