$cdmaterials: Difference between revisions
Jump to navigation
Jump to search
Tip:Material filenames are defined by the reference mesh (
(→Example: Russian language link) |
TomEdwards (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
The [[QC command]] <code>[[$cdmaterials]]</code> defines the folders in which the game will search for the model's [[material]]s | The [[QC command]] '''<code>[[$cdmaterials]]</code>''' defines the folders in which the game will search for the model's [[material]]s (subfolders are ''not'' searched). Each path is relative to <code><game>\materials\</code>. | ||
{{tip|Material filenames are defined by the [[reference mesh]] (<code>[[$body]]</code> / <code>[[$model]]</code>.}} | |||
{{tip| | |||
== Syntax == | == Syntax == | ||
$cdmaterials <path> < | $cdmaterials <path> <path 2> [...] | ||
== Example == | == Example == | ||
Line 18: | Line 16: | ||
{{otherlang:en}} | {{otherlang:en}} | ||
{{otherlang:en:ru|$cdmaterials:ru}} | {{otherlang:en:ru|$cdmaterials:ru}} | ||
[[Category:QC Commands| | |||
[[Category:QC Commands|c]] |
Revision as of 07:10, 7 January 2009
The QC command $cdmaterials
defines the folders in which the game will search for the model's materials (subfolders are not searched). Each path is relative to <game>\materials\
.

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