Modifying Panel Movement

Avatar
Mog
52 Posts
Posted May 26, 2011
Hi, is it possible to make it so instead of a panel turning 90 degrees, it can turn to another angle? I want a panel in my map to do this:
img
Advertisement
Registered users don’t see ads! Register now!
Avatar
Stylus
50 Posts
Posted May 26, 2011
Replied 8 minutes later
When selecting a model search for "tip_rubble_arm". this should give you a huge list of panels to work with..
Avatar
Mog
52 Posts
Posted May 26, 2011
Replied 8 minutes later
Hmm, nothing comes up for that...
In the World Model browser you mean?
Avatar
Supervillain
34 Posts
Posted May 26, 2011
Replied 2 hours later
You need to sort through all the panel animations using the model viewer or the model tab after creating your prop_dynamic and choosing the panel arm model. 64x64 interior is a great model with tons of animations.

The most important parts of any animation are the "idle" and "idleend" animations. These will show you the starting and ending point of the given animation. Use those idles to figure out what you want, then run the models animation.

There are lots of arm models, and many of them have over 30 animations. Just keep looking around until you find the animation that suits your needs.

Avatar
msleeper
4,136 Posts
Admin
Posted May 26, 2011
Replied 32 minutes later
If you are thinking to yourself "Looking through dozens of animations for dozens of different panels is going to be time consuming!" then you are right. During the initial playtesting/puzzle creation phase of building a map, you can get away with using static brushes until the time comes that you absolutely need to replace them with moving panels.

Don't spend your time looking for a perfect animation when your puzzle isn't even done yet.

Avatar
Supervillain
34 Posts
Posted May 26, 2011
Replied 15 minutes later

msleeper wrote:
If you are thinking to yourself "Looking through dozens of animations for dozens of different panels is going to be time consuming!" then you are right. During the initial playtesting/puzzle creation phase of building a map, you can get away with using static brushes until the time comes that you absolutely need to replace them with moving panels.

Don't spend your time looking for a perfect animation when your puzzle isn't even done yet.

yeah, this is very very very true. Not only is it time consuming, but it's a little buggy too. Sometimes the model defaults to an odd animation and trying to change it will crash hammer for no apparent reason. Changing the model animation suffers from some other problems too (which usually end in hammer crashing).

Anywho, if you REALLY want an acceptable animation set, try intro_collapse_XXXXXXX.

Avatar
Mog
52 Posts
Posted May 27, 2011
Replied 2 hours later
Thanks for the advice. I think a static brush is what I'll end up using.
Avatar
SpcAgentOrange
9 Posts
Posted May 31, 2011
Replied 4 days later

msleeper wrote:
If you are thinking to yourself "Looking through dozens of animations for dozens of different panels is going to be time consuming!" then you are right. During the initial playtesting/puzzle creation phase of building a map, you can get away with using static brushes until the time comes that you absolutely need to replace them with moving panels.

Don't spend your time looking for a perfect animation when your puzzle isn't even done yet.

Thank you for this! I found this thread looking for a way to do something similar to the OP (articulating arm, with a brush attached, very clever). But it's tied me down for two days trying to figure this out, instead of getting the meat of my puzzle down.

Shut up and code!

K

Avatar
RageCompeX
65 Posts
Posted May 31, 2011
Replied 1 hour later
try SetPlaybackRate, First set it to 1 or half speed, 0.5 And then after a few seconds set to 0, the animation will stop, First start the animation and 0.01 seconds later set the playback rate
Advertisement
Registered users don’t see ads! Register now!
Avatar
PrejudicedNanobot
39 Posts
Posted Jun 01, 2011
Replied 20 hours later

RageCompeX wrote:
try SetPlaybackRate, First set it to 1 or half speed, 0.5 And then after a few seconds set to 0, the animation will stop, First start the animation and 0.01 seconds later set the playback rate

I've tried this method of halting a panel animation before it's complete and, unfortunately, it seems that the delays aren't implemented in the engine with sufficient precision for this to reliably stop the animation at the same point every time (my implementation involves setting the playback rate of the panel to 1, waiting 0.5 seconds, then setting it to 0). It's too bad, because it would otherwise be a very neat way of getting the panels to come out at "normal" angles that aren't 90 or 45 degrees. That said, if anyone's worked out a way of getting this to behave reliably or knows of another method to stop an animation at a specific frame before it's complete, please let us know!