Difference between revisions of "$cdmaterials"

From Valve Developer Community
Jump to: navigation, search
m
m (minor cleanup)
Line 5: Line 5:
 
{{tip|Filenames are defined by the [[$body]] SMD(s).}}
 
{{tip|Filenames are defined by the [[$body]] SMD(s).}}
  
== Options ==
+
== Syntax ==
  
 
  $cdmaterials <path> <second path> ...
 
  $cdmaterials <path> <second path> ...
  
== QC syntax Example ==
+
== Example ==
  
 
  [[$modelname]] "weapons/shell.mdl"
 
  [[$modelname]] "weapons/shell.mdl"
 
  '''[[$cdmaterials]] "models/weapons/"'''
 
  '''[[$cdmaterials]] "models/weapons/"'''
  [[$body]] shell "shell-ref.smd"
+
  [[$body]] shell "shell_ref.smd"
  [[$sequence]] idle "shell-idle.smd"
+
  [[$sequence]] idle "shell_idle.smd"
  
[[Category:QC Commands|C]]
+
[[Category:QC Commands|cdmaterials]]

Revision as of 15:29, 28 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).

Syntax

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

Example

$modelname		"weapons/shell.mdl"
$cdmaterials		"models/weapons/"
$body		shell	"shell_ref.smd"
$sequence	idle	"shell_idle.smd"