$cdmaterials: Difference between revisions
Jump to navigation
Jump to search
Tip:Material filenames are defined by the reference mesh (
Tip:By default, models can have no more than 32 different material search paths.
mNo edit summary |
Thunder4ik (talk | contribs) m (→top: clean up, replaced: {{goldsrc → {{gldsrc) |
||
Line 1: | Line 1: | ||
{{lang|$cdmaterials|$title=$cdmaterials}}{{src topicon}} | {{lang|$cdmaterials|$title=$cdmaterials}}{{src topicon}} | ||
{{src|only}} | {{src|only}} | ||
{{for|{{ | {{for|{{gldsrc|4.1}}|{{ent|$cdtexture}}}} | ||
{{This is a|c0|name=$cdmaterials}} It defines the folders in which the game will search for the model's [[material]]s (subfolders are not searched). Each path is relative to <code><game>\materials\</code>. | {{This is a|c0|name=$cdmaterials}} It defines the folders in which the game will search for the model's [[material]]s (subfolders are not searched). Each path is relative to <code><game>\materials\</code>. | ||
Revision as of 12:50, 4 January 2024
For
GoldSrc, see $cdtexture.

$cdmaterials
is a c0 available in all Source games. It defines the folders in which the game will search for the model's materials (subfolders are not searched). Each path is relative to
<game>\materials\
.
It is traditional to specify the \models
subfolder before any others.

$body
or $model
).
Syntax
$cdmaterials <path> <path 2> [...]
Example
$modelname "weapons\shell.mdl" $cdmaterials "models\weapons\" $body shell "shell_ref.smd" $sequence idle "shell_idle.smd"