$cdmaterials: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(→‎Example: Russian language link)
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, relative to <code><game>/materials/</code>.
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>.


{{note|Subfolders will not be searched.}}
{{tip|Material filenames are defined by the [[reference mesh]] (<code>[[$body]]</code> / <code>[[$model]]</code>.}}
 
{{tip|Filenames are defined by the [[$body]] SMD(s).}}


== Syntax ==
== Syntax ==


  $cdmaterials <path> <second 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|cdmaterials]]
 
[[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\.

Tip.pngTip:Material filenames are defined by the reference mesh ($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"

Template:Otherlang:en Template:Otherlang:en:ru