//---------------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 or effects // Look in the surfaceproperties.txt found in hl2 GCF hl2\scripts folder $surfaceprop "metal" //$jointsurfaceprop can a add surface props to a bone's weight //$jointsurfaceprop "bone1" "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" } } //$bone_followers add movement to Collision pieces like an animated door //$keyvalues { bone_followers { "bone" "bone1" "bone" "bone2" "bone" "bone3" } } //---------------Reference model--------------- $body "body" "Name_reference" //---------------Animation Sequence--------------- // There must be a idle sequence in order to compile, use the reference model $sequence "idle" "Name_reference" fps 30 ACT_IDLE 1 //Copy and paste the statement below to add more animations //$sequence "animation_name" "animation_smd" fps 30 //---------------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 //$rootbone is important $collisionjoints "phymodel.smd" { $mass 40 $inertia 1.00 $damping 0.00 $rotdamping 0.00 $rootbone "main_bone" }