Please or Register to create posts and topics.

Creating Panels - Prop_dynamic

Page 1 of 3Next

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... :D

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

Sounds surprisingly simple, I'll have to try this out.

When I die I want to be dissected by some mad genius and used in one of his evil schemes. It's great to be part of something bigger than yourself.

sounds simple... took some working out let me tell you lol :)

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.

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...

Put this on the VDC.

Currently working on Darksiders 3.

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&current=Portalbug.jpg

im using the armliving64x64 and the animation 90deg_in_cornerback
Thanks in advance

Usefull info, hope I manage to make it work. Thanks a lot DaisyCutter :)

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&current=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?

Page 1 of 3Next