Creating Panels - Prop_dynamic
Here is a Guide that will hopefully help you understand them and create your own...
Step1
Create a prop_dynamic and name this arm_1
Change the World Model to - arm64x64_interior.mdl
Set collisions to - Use Bounding Box
Click Apply
You need to set the Default Animation to your starting animation (you can get this from the sequences tab in the model browser).
Then go to the Models Tab and select your default animation from the sequence dropdown list to show your model in the default position (starting position), this helps when aligning your panel to the world and/or aligning your func_brush to the model.
Step2
Next create a Brush (the panel that will attach to the arm and move with it).
Position the brush.
ctrl+t to - then assign it a func_brush, apply, then name this panel_1
Set the Parent to arm_1
Step3
Create a logic_relay (open)
Name Relay "relay_open" - We will come back to this shortly.
Start Disabled = No
Step4
Create another logic_relay (close)
Name Relay "relay_close"
Start Disabled = No
Step5
If you are creating more panels with different names use the same relays and logic, just add new values in the same way as described below, changing the names respectively.
Now we need to attach the brush to the panel and set up the default animations when the map loads.
Create a logic_auto open the Object Properties (Alt+Enter) and go to the Output Tab and add the following settings:
My output Target Entity Target Input Parameter Delay Only Once
OnMapSpawn 'Name Of Panel' SetParentAttachmentMaintainOffset Panel_attach 0.00 No
OnTrigger 'Name of Model' Disable 0.00 No
Open relay_open output settings:
My output Target Entity Target Input Parameter Delay Only Once
OnTrigger 'Name Of Model' SetAnimation makeramp_04open 0.00 No
OnTrigger relay_open Disable 0.00 No
OnTrigger 'Name Of Model' SetDefaultAnimation makeramp_04open_idlend 0.01 No
OnTrigger relay_close Enable 1.00 No
Open relay_close output settings:
My output Target Entity Target Input Parameter Delay Only Once
OnTrigger relay_close Disable 0.00 No
OnTrigger 'Name Of Model' SetAnimation makeramp_04close 0.00 No
OnTrigger 'Name Of Model' SetDefaultAnimation makeramp_04close_idlend 0.01 No
OnTrigger relay_open Enable 1.00 No
A PDF is located here with images:
http://www.deviant-design-ltd.co.uk/tuts/Create_an_Animated_Prop_Dynamic.pdf
A sample .vmf will be available later
it looks really awesome but for some reason when i do it, it gets stuck halfway so the brush isnt lining up with the arm when its open its like its colliding.
Just try maximising the grid (maximum lines) and zoom in so you can see properly, then try lining both the panel and the brush, should work.
Let me know how you get on...
http://s1094.photobucket.com/albums/i454/NaZer95/?action=view¤t=Portalbug.jpg
im using the armliving64x64 and the animation 90deg_in_cornerback
Thanks in advance
MrTwoVideoCards wrote:
Put this on the VDC.
I will do when it 100%, i need to add a few more bits to it and add some workable files. I am working up some other stuff at the moment.
watch this space
NaZer wrote:
Heij ive Maximized the grid as you said but it was perfectly lined up, im using another model then you are, but works half the way and then stops like this.http://s1094.photobucket.com/albums/i454/NaZer95/?action=view¤t=Portalbug.jpg
im using the armliving64x64 and the animation 90deg_in_cornerback
Thanks in advance
is this an activated animation, through a trigger or button or somethig? if so does it need an idle state...
What other animations are you using with this?
Have a look at thes files
http://www.deviant-design-ltd.co.uk/tuts/corner_back.zip
I have had a play with it. It seems that the way source name their sequences doesn't apply perfectly to all, It really needs some time spent to get these settings perfect.
I will be adding another vmf and bsp soon, with yet more moving panels:) i have still to figure out the dynamics of some of the animations etc.
P.S. I would like to release my SP map before this hopefully by the end of the week.
Will release some screen shots soon 
its all working so far and i just wanna say great post and GREAT response.
Keep up the good work i really appriciate it
And im also looking forward to playing your SP map 
That line is somewhat unnecessary. I don't need to use it with my panels.
Some animation sequences only have a forward animation and not a retracting one, any idea how to set the close animation the forward one and reverse it?
Does anyone have any ideas on what animation sequence would fluently go from one of the error animations to closing into the wall? I have been looking at them but there are 200 of them.
DrummerB wrote:
In the logic_auto, don't you want to disable relay_close instead of the model? Maybe I'm just not understanding it completely.
You only need the close Relay if you want the panels to reset, Say a prop_floor_button, you might want the user to leave a cube on it to prevent them from triggering the panels and taking the cube with them.
Beer-Me wrote:
OnTrigger 'Name Of Model' SetDefaultAnimation makeramp_04open_idlend 0.01 NoThat line is somewhat unnecessary. I don't need to use it with my panels.
Some animation sequences only have a forward animation and not a retracting one, any idea how to set the close animation the forward one and reverse it?
Simply change the names of the animations to suite your needs. It is worth spending a little time looking through all the sequences.