$cdmaterials: Difference between revisions
Jump to navigation
Jump to search
Note:Subfolders will not be searched.
Tip:Filenames are defined by the $body SMD(s).
TomEdwards (talk | contribs) 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).}} | ||
== | == Syntax == | ||
$cdmaterials <path> <second path> ... | $cdmaterials <path> <second path> ... | ||
== | == Example == | ||
[[$modelname]] "weapons/shell.mdl" | [[$modelname]] "weapons/shell.mdl" | ||
'''[[$cdmaterials]] "models/weapons/"''' | '''[[$cdmaterials]] "models/weapons/"''' | ||
[[$body]] shell " | [[$body]] shell "shell_ref.smd" | ||
[[$sequence]] idle " | [[$sequence]] idle "shell_idle.smd" | ||
[[Category:QC Commands| | [[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/
.


Syntax
$cdmaterials <path> <second path> ...
Example
$modelname "weapons/shell.mdl" $cdmaterials "models/weapons/" $body shell "shell_ref.smd" $sequence idle "shell_idle.smd"