$body

From Valve Developer Community
Revision as of 04:52, 26 April 2008 by Beeswax (talk | contribs)
Jump to navigation Jump to search

The $body QC command is used to specify the reference.smd file that will become the $modelname.mdl.

  • Use $body for all models unless you need to specify special animation parameters like eyes, flexes etc.; in which case use $model (QC) instead.

Parameters

$body	"<name>" "<reference>.smd"
<name>
Can be anything you like. It is used as a convenient label by HLMV to distinguish the main mesh from other $bodygroup meshes.
<reference SMD>
Path to and name of the 'reference' 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"