$body: Difference between revisions
Jump to navigation
Jump to search
Tip:More complex models with eyes, facial animation, etc. use
mNo edit summary |
TomEdwards (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
The [[$body]] [[QC command]] is used to specify | The <code>[[$body]]</code> [[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 [[npc_metropolice|metrocop]], who has one with a [[npc_manhack|manhack]] attached and one without. | |||
{{tip|More complex models with eyes, facial animation, etc. use <code>[[$model (QC)|$model]]</code> instead of $body.}} | |||
== Options == | |||
$body <name> <reference SMD> | |||
;<code><name></code> | |||
:Can be any string value. Used to refer to the body in [[HLMV]] and [[C++]]. | |||
;<code><reference SMD></code> | |||
:Path to a 'reference' (aka 'model') SMD, relative to the QC file's [[$cd|current directory]]. | |||
==QC syntax example== | ==QC syntax example== | ||
[[$modelname]] "weapons/shell.mdl" | |||
[[$cdmaterials]] "models/weapons/" | |||
'''[[$body]] shell "shell-ref.smd"''' | |||
[[$sequence]] idle "shell-idle.smd" | |||
== See also == | |||
*[[$model (QC)|$model]] | |||
[[Category:QC Commands]] | [[Category:QC Commands]] |
Revision as of 00:25, 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"