$body

From Valve Developer Community
Revision as of 00:25, 26 April 2008 by TomEdwards (talk | contribs)
Jump to navigation Jump to search

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.

Tip.pngTip:More complex models with eyes, facial animation, etc. use $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"

See also