//---------------Model Name--------------- //Model compiled directory, note remember .mdl $modelname "Myfolder/name_reference.mdl" //---------------Texture link--------------- //Texture compiled directory, note it should be put into the models texture folder $cdmaterials "Models/myfolder/" //---------------Scaling--------------- //Use this scale your models if its off scale $scale 1 //---------------Surface properties--------------- // Surface properties are the density, friction, dampening, elasticity and sounds the object makes // Look in the surfaceproperties.txt found in hl2 GCF hl2\scripts folder $surfaceprop "metal" //If you want separate surfaceprops thought the different bone weights //$jointsurfaceprop "Bone_1" "metal" //---------------Prop data--------------- // Prop data are the object's health, default weight and breakable features // Look in the propdata.txt found in hl2 GCF hl2\scripts folder // Find tons of prop data commands to add at Developer.valvesoftware.com/wiki/Prop_Data $keyvalues { "prop_data" { "base" "Metal.Medium" } } //---------------Reference model--------------- $body "body" "Name_reference" //---------------Animation Sequence--------------- // There must be a idle sequence in order to compile, use the reference model // Your ragdoll pose can be the main reference smd or custom 1 frame animation/pose $sequence "idle" "Name_reference" fps 30 ACT_IDLE 1 $sequence "ragdoll" "Ragdoll_pose" fps 30 ACT_DIERAGDOLL 1 //---------------Level of detial--------------- // The number 15 the replace distance, copy and paste add more replacements $lod 15 { replacemodel "Name_reference" "Name_lod1" } //---------------Collision model--------------- //Mass in kilograms //Replace $mass with $automass if you want the compiler to base the weight of the object on its surfaceproperties and volume //$concave is made up of individual postive space chucks to create collision areas for negitive (indent) space //Your collision smd must have absolute weighting. Each weight vertex must equal 0 or 1, nothing else. Each collision chunk shound only be attached to one bone. $collisionjoints "phymodel.smd" { $mass 40 $inertia 1.00 $damping 0.00 $rotdamping 0.00 $rootbone "master_bone" } //THIS IS TEMPORY STEP, you must load up the prop in the Model viewer after compiling it the first time and input the bone constraints. Go to the physics tab and set the constraints for the each axis for every bone. Then click on the Generate QC button; that’s just copy text (crtl-c). Paste the new bone physics information into the QC file and recompile.