How To: Model for Source in Blender

Code Snippets

idle.smd
version 1 nodes 0 "joint0" -1 end skeleton time 0 0 0.000000 0.000000 0.000000 0 0.000000 0.000000 end
material.vmt
"VertexLitGeneric" { "$basetexture" "models/props/materialname" "$surfaceprop" "metal" "$model" 1 }
model.qc
$modelname "props/modelname.mdl" $body mybody "modelname.smd" $staticprop $surfaceprop "metal" $cdmaterials "models/props" $scale 1 $sequence idle "idle.smd" loop fps 1 $collisionmodel "modelname-phy.smd" { $automass $concave } $keyvalues { "prop_data" { "base" "Metal.Medium" } }
run_studiomdl.bat
@"c:\program files\steam\steamapps\username\sourcesdk\bin\ep1\bin\studiomdl.exe" -game "c:\program files\steam\steamapps\username\garrysmod\garrysmod" model.qc pause