$cdmaterials

From Valve Developer Community
Revision as of 09:36, 13 October 2007 by Wolf (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Used to provide directories for the game to search for the models materials.

Description

$cdmaterials (directory) [(directory) (directory) ...]


Parameters

  • (directory) The directories should be relative to the mod materials/ directory and will be embedded directly in the .mdl file. If the materials resides in multiple folder the command can either be stated multiple times or have multple directory parameters. The path should be douple quoted.

Example

$modelname "weapons/shell.mdl"
$cdmaterials "models/weapons/"
$model "Shell" "shell.smd"
$sequence "idle" "shell.smd"