$cdmaterials: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
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 16: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.pngNote:Subfolders will not be searched.
Tip.pngTip: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"