$cdmaterials
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"