$cdmaterials: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
m (increased quality)
Line 3: Line 3:
==Description==
==Description==


$cdmaterials (directory) [(directory) (directory) ...]
$cdmaterials "path/to/files" "this/works/too" ...
 
 


==Parameters==
==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.
* The specified directories should be relative to <code>materials/</code> and should encompass the directories of all materials used in the model.


==Example==
==Example==
$modelname "weapons/shell.mdl"<br />
$modelname "weapons/shell.mdl"
'''$cdmaterials "models/weapons/"'''<br />
'''$cdmaterials "models/weapons/"'''
$model "Shell" "shell.smd"<br />
$model "Shell" "shell.smd"
$sequence "idle" "shell.smd"
$sequence "idle" "shell.smd"

Revision as of 20:56, 13 October 2007

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

Description

$cdmaterials "path/to/files" "this/works/too" ...

Parameters

  • The specified directories should be relative to materials/ and should encompass the directories of all materials used in the model.

Example

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