$cdmaterials: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 3: Line 3:
{{note|Subfolders will not be searched.}}
{{note|Subfolders will not be searched.}}


{{tip|Filenames are defined by the reference SMD.}}
{{tip|Filenames are defined by the [[$body]] SMD(s).}}


== Options ==
== Options ==

Revision as of 14:55, 27 April 2008

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 $body SMD(s).

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"