Creating Panels - Prop_dynamic
Quote from DaisyCutter on May 4, 2011, 11:14 amHi i have been trying to work out these Panels for a couple of days and finally think i have got my head around it.
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 ApplyYou 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_1Step3
Create a logic_relay (open)
Name Relay "relay_open" - We will come back to this shortly.
Start Disabled = NoStep4
Create another logic_relay (close)
Name Relay "relay_close"
Start Disabled = NoStep5
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:
- Code: Select all
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 NoOpen relay_open output settings:
- Code: Select all
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 NoOpen relay_close output settings:
- Code: Select all
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 NoA PDF is located here with images:
http://www.deviant-design-ltd.co.uk/tuts/Create_an_Animated_Prop_Dynamic.pdfA sample .vmf will be available later
Hi i have been trying to work out these Panels for a couple of days and finally think i have got my head around it.
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:
- Code: Select all
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:
- Code: Select all
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:
- Code: Select all
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
Quote from Kaiaatsel on May 4, 2011, 1:27 pmSounds surprisingly simple, I'll have to try this out.
Sounds surprisingly simple, I'll have to try this out.
Quote from DaisyCutter on May 4, 2011, 2:09 pmsounds simple... took some working out let me tell you lol
sounds simple... took some working out let me tell you lol
Quote from NaZer on May 4, 2011, 7:16 pmPerfect timing ive really been looking for this tut
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.
Perfect timing ive really been looking for this tut
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.
Quote from DaisyCutter on May 4, 2011, 7:48 pmHi Nazer, when creating a prop dynamic it will line up with the grid, but once you change the model, sometime (most of the time), it will move off grid positioning.
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...
Hi Nazer, when creating a prop dynamic it will line up with the grid, but once you change the model, sometime (most of the time), it will move off grid positioning.
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...
Quote from MrTwoVideoCards on May 4, 2011, 8:27 pmPut this on the VDC.
Put this on the VDC.
Quote from NaZer on May 5, 2011, 2:08 amHeij 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
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
Quote from DaisyCutter on May 5, 2011, 6:25 amMrTwoVideoCards 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
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
Quote from DaisyCutter on May 5, 2011, 6:33 amNaZer 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 advanceis 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?
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?