$cdmaterials

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

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

Note.pngNote:Subfolders will not be searched.
Tip.pngTip:Filenames are defined by the reference SMD.

Options

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

QC syntax Example

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