$cdmaterials

From Valve Developer Community
Revision as of 09:26, 2 November 2008 by Halfgild Wynac (talk | contribs) (→‎Example: Russian language link)
Jump to navigation Jump to search

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"

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