$model: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(20 intermediate revisions by 7 users not shown)
Line 1: Line 1:
Specifies a reference smd file to be used as part of this model.
{{disambig}}
 
<code>$model</code> is used differently in two contexts:
==Description==
*See [[$model (VMT)]] for the $model [[VMT command]] used to flag a material as a model skin rather than a brush texture.
 
*See [[$model (QC)]] for the $model [[QC command]] used to specify a reference mesh when compiling models.
$model (name) (filename)
 
Used mainly for characters when the model needs complex parameters like eyes, flexes etc. In other cases, use [[$body]].
 
==Parameters==
* (name) can be any thing as it is only ever used in [[HLMV]]. Should be in douple quotes.
 
* (filename) The path to a reference smd, relative to the [[$cd|current path]]. Should be in douple quotes.
 
==Example==
$modelname "weapons/shell.mdl"<br />
$cdmaterials "models/weapons/"<br />
'''$model "Shell" "shell.smd"'''<br />
$sequence "idle" "shell.smd"

Latest revision as of 17:34, 28 January 2024

Icon-disambig.png
This is a disambiguation page, a list of pages that otherwise might share the same title.
If an article link referred you to this title, you might want to go back and fix it to point directly to the intended page.

$model is used differently in two contexts: