$body: Difference between revisions
Jump to navigation
Jump to search
Tip:More complex models with eyes, facial animation, etc. use
TomEdwards (talk | contribs) m (→Options: huh) |
TomEdwards (talk | contribs) m (→Options) |
||
Line 12: | Line 12: | ||
:Can be any string value. Used to refer to the body in [[HLMV]] and C++. | :Can be any string value. Used to refer to the body in [[HLMV]] and C++. | ||
;<code><reference SMD></code> | ;<code><reference SMD></code> | ||
:Path to a 'reference' (aka 'model') SMD, relative to the QC file's | :Path to a 'reference' (aka 'model') SMD, relative to the QC file's current directory. | ||
==QC syntax example== | ==QC syntax example== |
Revision as of 02:01, 26 April 2008
The $body
QC command is used to specify a 'reference' SMD that contains vertex, UV map, skeleton and envelope data for the model. Without it, the model has no physical appearance and there is no context for animation data.
A name is given to a $body because it is possible for a model to have several - like the metrocop, who has one with a manhack attached and one without.

$model
instead of $body.Options
$body <name> <reference SMD>
<name>
- Can be any string value. Used to refer to the body in HLMV and C++.
<reference SMD>
- Path to a 'reference' (aka 'model') SMD, relative to the QC file's current directory.
QC syntax example
$modelname "weapons/shell.mdl" $cdmaterials "models/weapons/" $body shell "shell-ref.smd" $sequence idle "shell-idle.smd"