$model: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(16 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<code>$model (name) (filename)</code>
{{disambig}}
 
<code>$model</code> is used differently in two contexts:
* Specifies the smd file to be load. Used mainly for characters when the model needs complex parameters like eyes, flexes etc. In other cases, use $body.
*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.
* Specifies a reference smd file to be used as part of this model.
 
==Description==
 
$model "name" "smd"
 
Used mainly for characters when the model needs complex parameters like eyes, flexes etc. In other cases, use [[$body]].
 
==Parameters==
* <code>name</code> can be any thing as it is only used in [[HLMV]].
 
* <code>smd</code> is the path to a reference smd, relative to the [[$cd|current path]].
 
==Example==
$modelname "weapons/shell.mdl"
$cdmaterials "models/weapons/"
'''$model "Shell" "shell.smd"'''
$sequence "idle" "shell.smd"
 
[[Category:QC Commands]]

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: