Tutorial 2: Compiling a prop_dynamic


A movable parentable prop that has a collision mesh, and animations, but is NOT physically simulated (as in you collide with it but it does not move or is affected by gravity, etc). Examples are moving doors, machinery, robotic arms, baked-physics animated stuff (goldrush explosion) and as a model for brush entities (parenting). They can also break and have gibs.

Step1: Open Studiocompiler and configure your gamedir and SDK paths

Step2: Create your custom model path with final model name Example:
"\mymodels\mydynamiccprop.mdl"
REMEMBER to create this directory in your game folder!:
C:\Program Files (x86)\Steam\steamapps\ACCOUNT\counter-strike source\cstrike\models\mymodels\

Step3: Click material compile tab and go into the "Compiled material directory" and put in the same path for materials as we did back in the materials compile stage:"\mymodels\". Only difference here is that this field is relative to materials\models

Switch back to the Model compile tab.

Step4: Select "model type" to "prop_dynamic"

Step5: Push the Model options button.
-Choose your model surfaceprop (find names in the game GCF file: *game*\scripts\surfaceproperties.txt )
-Choose any gib models if breakable (these have to made first and for gib models you need to make pieces with the prop_physics method)
-Set any LOD models. You might want to revisit this after finishing your model to get a better idea for activation distance. More info here on LODs
-Set any skins and follow the instructions on the dialog. It mentions about only one texture. For more check this page out: Creating Multiple Skin Combinations

Step6: Click add under the sequences section to add your animation sequences. Add the sequence SMD, set the animation rate. You should include an idle sequence first (which can be the reference mesh itself)

Step7: Select your reference SMD

Step8: Select your collision SMD (if your model is simple enough just check the "use reference SMD box" Optional step: If you need to change the names of the textures in your model for whatever reason or verify the status click "SMD info/edit" for info and replacement options.

Step9: Compile the model

Step10: Open Model viewer (HLMV) from the source SDK and verify the model is working. For a prop_static do this checklist:

Final steps:You can recompile the model with changes as Studiocompiler remembers all the settings of your last model. If you need to do any manual edits such as animation rate changes, multiple skin combinations or LOD distances, you can find the generated QC file in the same directory as your reference mesh with the same name. Edit this file with a text editor, and then open it in Studiocompiler with the "compile w/Existing QC"

Tutorial 3: Compiling a Prop_Physics