$body: Difference between revisions
Jump to navigation
Jump to search
Tip:Models with facial animation use
Tip:Multiple reference meshes can be handled with a $bodygroup.
TomEdwards (talk | contribs) No edit summary |
m (comments in diff) |
||
Line 4: | Line 4: | ||
{{tip|Multiple reference meshes can be handled with a [[$bodygroup]].}} | {{tip|Multiple reference meshes can be handled with a [[$bodygroup]].}} | ||
<!-- | |||
// I would collapse this into one tip : | |||
{{tip|See also: For including additional sub-meshes see [[$bodygroup]]. For models with [[facial animation]]s see <code>[[$model (QC)|$model]]</code>.}} | |||
--> | |||
== Syntax == | == Syntax == | ||
$body <name> "<reference mesh SMD>" | $body <name> "<reference mesh SMD>" | ||
<!-- // lol no :-) ... | |||
$body <body_mesh> "<reference.smd>" | |||
--> | |||
where : | 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). | ||
<!-- | |||
// there can only be 1 "reference" mesh, but any number of sub-meshes. how about: ... | |||
;<code><body_mesh></code> | |||
:An arbitrary label to distinguish the [[reference mesh]] from any [[$bodygroup]] sub-meshes. | |||
--> | |||
;<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. The <code>.smd</code> extension is optional, but helps make the QC file easier to read. | :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. | ||
Line 28: | Line 38: | ||
*[[$bodygroup]] | *[[$bodygroup]] | ||
*[[$model (QC)|$model]] | *[[$model (QC)|$model]] | ||
<!-- // arguably: re-listing links here that are/should be explained above is unnecessary clutter? --> | |||
[[Category:QC Commands|body]] | [[Category:QC Commands|body]] |
Revision as of 12:06, 3 May 2008
The $body QC command is used to include a reference mesh SMD in a model. Without at least one $body the model will not be rendered.

$model
.
Syntax
$body <name> "<reference mesh 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