$cdmaterials: Difference between revisions

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


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


==Parameters==
==Parameters==

Revision as of 19:48, 14 October 2007

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

Description

$cdmaterials "path/to/files/" "path/to/more/files/" ...

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"