$body: Difference between revisions
Jump to navigation
Jump to search
Tip:Models with facial animation use
Note:Reference meshes co-exist by default, rather than replacing each other.
TomEdwards (talk | contribs) mNo edit summary |
(cleanup - reference.smd should be defined/described on its own page) |
||
Line 1: | Line 1: | ||
The [[$body]] [[QC command]] is used to specify a [[reference | The [[$body]] [[QC command]] is used to specify a [[reference.smd]]. Without at least one $body, the model will not be rendered, ie it will be invisible. | ||
{{tip|Models with [[facial animation]] use <code>[[$model (QC)|$model]]</code>.}} | {{tip|Models with [[facial animation]] use <code>[[$model (QC)|$model]]</code>.}} | ||
Line 5: | Line 5: | ||
{{note|Reference meshes co-exist by default, rather than replacing each other.}} | {{note|Reference meshes co-exist by default, rather than replacing each other.}} | ||
== | == Syntax == | ||
$body <name> <reference smd> | $body <name> "<reference smd>.smd" | ||
where : | |||
;<code><name></code> | ;<code><name></code> | ||
:A label for this $body to distinguish it from other reference meshes (if there are any). | :A label for this $body to distinguish it from other reference meshes (if there are any). | ||
;<code><reference smd></code> | ;<code><reference smd></code> | ||
:Path to and name of the 'reference' (sometimes 'model') SMD relative to the QC file's current directory. | :Path to and name of the 'reference' (sometimes 'model') SMD relative to the QC file's current directory. The <code>.smd</code> extension is optional, but helps make the QC file easier to read. | ||
== Example == | == Example == | ||
Line 20: | Line 20: | ||
[[$modelname]] "weapons/shell.mdl" | [[$modelname]] "weapons/shell.mdl" | ||
[[$cdmaterials]] "models/weapons/" | [[$cdmaterials]] "models/weapons/" | ||
'''[[$body]] shell " | '''[[$body]] shell "shell_ref.smd"''' | ||
[[$sequence]] idle " | [[$sequence]] idle "shell_idle.smd" | ||
== See also == | == See also == | ||
*[[Reference mesh]] | *[[Reference mesh]] | ||
*[[$lod]] "replacemodel" | |||
*[[$bodygroup]] | *[[$bodygroup]] | ||
*[[$model (QC)|$model]] | *[[$model (QC)|$model]] | ||
[[Category:QC Commands|B]] | [[Category:QC Commands|B]] |
Revision as of 09:33, 29 April 2008
The $body QC command is used to specify a reference.smd. Without at least one $body, the model will not be rendered, ie it will be invisible.

$model
.
Syntax
$body <name> "<reference smd>.smd"
where :
<name>
- A label for this $body to distinguish it from other reference meshes (if there are any).
<reference smd>
- Path to and name of the 'reference' (sometimes 'model') SMD relative to the QC file's current directory. The
.smd
extension is optional, but helps make the QC file easier to read.
Example
$modelname "weapons/shell.mdl" $cdmaterials "models/weapons/" $body shell "shell_ref.smd" $sequence idle "shell_idle.smd"
See also
- Reference mesh
- $lod "replacemodel"
- $bodygroup
- $model