$body: Difference between revisions
Jump to navigation
Jump to search
Tip:Models with facial animation use
No edit summary |
TomEdwards (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
The [[$body]] [[QC command]] is used to specify the | The [[$body]] [[QC command]] is used to specify a [[body mesh]] that contains [[vertex]], [[UV map]], [[skeleton]] and [[envelope]] data for the model. Without at least one body, the model will have no physical appearance or [[skeleton]]. | ||
{{tip|Models with [[facial animation]] use <code>[[$model (QC)|$model]]</code>.}} | |||
== | == Usage == | ||
$body | $body <name> <reference smd> | ||
== Options == | |||
;<code><name></code> | ;<code><name></code> | ||
: | :A label for this body to distinguish it from other [[$bodygroup]] meshes. | ||
;<code><reference | ;<code><reference smd></code> | ||
:Path to and name of the 'reference' SMD | :Path to and name of the 'reference' (sometimes 'model') SMD relative to the QC file's current directory. | ||
== | == Example == | ||
[[$modelname]] "weapons/shell.mdl" | [[$modelname]] "weapons/shell.mdl" | ||
[[$cdmaterials]] "models/weapons/" | [[$cdmaterials]] "models/weapons/" | ||
'''[[$body]] " | '''[[$body]] shell "shell-ref.smd"''' | ||
[[$sequence]] idle " | [[$sequence]] idle "shell-idle.smd" | ||
[[Category:QC Commands]] | [[Category:QC Commands]] |
Revision as of 11:05, 27 April 2008
The $body QC command is used to specify a body mesh that contains vertex, UV map, skeleton and envelope data for the model. Without at least one body, the model will have no physical appearance or skeleton.

$model
.Usage
$body <name> <reference smd>
Options
<name>
- A label for this body to distinguish it from other $bodygroup meshes.
<reference smd>
- Path to and name of the 'reference' (sometimes 'model') SMD relative to the QC file's current directory.
Example
$modelname "weapons/shell.mdl" $cdmaterials "models/weapons/" $body shell "shell-ref.smd" $sequence idle "shell-idle.smd"