From Valve Developer Community
Revision as of 13:55, 27 April 2008 by TomEdwards (talk | contribs)
Jump to: navigation, search

The QC command $cdmaterials defines the folders in which the game will search for the model's materials, relative to <game>/materials/.

Note.png Note: Subfolders will not be searched.
Tip.png Tip: Filenames are defined by the $body SMD(s).


$cdmaterials <path> <second path> ...

QC syntax Example

$modelname		"weapons/shell.mdl"
$cdmaterials		"models/weapons/"
$body		shell	"shell-ref.smd"
$sequence	idle	"shell-idle.smd"