Difference between revisions of "$cdmaterials"

From Valve Developer Community
Jump to: navigation, search
m
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 13: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.png Note: Subfolders will not be searched.
Tip.png Tip: 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"