$cdmaterials: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
The [[QC command]] [[$cdmaterials]] is used to provide directories for the game to search for the models materials.
The [[QC command]] <code>[[$cdmaterials]]</code> defines the folders in which the game will search for the model's [[material]]s, relative to <code><game>/materials/</code>.


==QC syntax==
{{note|Subfolders will not be searched.}}


$cdmaterials "path/to/files/" "path/to/more/files/" ...
== Options ==


* The specified directories should be relative to <code>materials/</code> and should encompass the directories of all materials used in the model.
$cdmaterials <path> <second path> ...
 
====Example====
[[$modelname]] "weapons/shell.mdl"
'''[[$cdmaterials]] "models/weapons/"'''
[[$model]] "Shell" "shell.smd"
[[$sequence]] "idle" "shell.smd"


== QC syntax Example ==


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


[[Category:QC Commands]]
[[Category:QC Commands]]

Revision as of 00:47, 26 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.

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"