$cdmaterials: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
The [[QC command]] [[$cdmaterials]] is used to provide directories for the game to search for the models materials.
The [[QC command]] [[$cdmaterials]] is used to provide directories for the game to search for the models materials.


==Description==
==QC syntax==


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


==Parameters==
* The specified directories should be relative to <code>materials/</code> and should encompass the directories of all materials used in the model.
* 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"
  [[$modelname]] "weapons/shell.mdl"
  '''[[$cdmaterials]] "models/weapons/"'''
  '''[[$cdmaterials]] "models/weapons/"'''

Revision as of 12:24, 31 March 2008

The QC command $cdmaterials is used to provide directories for the game to search for the models materials.

QC syntax

$cdmaterials "path/to/files/" "path/to/more/files/" ...
  • 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"