$body: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
Specifies a reference smd file to be used as part of this model.
The [[$body]] [[QC command]] is used to specify the ''reference.smd'' file that will become the [[$modelname]].
* Use [[$body]] for all models unless you need to specify special animation parameters like eyes, flexes etc.; in which case use [[$model (QC)]] instead.


==Description==
==QC syntax example==
[[$modelname]] "weapons/shell.mdl"
[[$cdmaterials]] "models/weapons/"
[[$body]] '''"Shell" "shell.smd"'''
[[$sequence]] "idle" "shell.smd"


$body "name" "smd"
Where
 
* <code>"Shell"</code> can be anything as it is only used as a label in [[HLMV]].
Used for nearly every model except for characters when the model needs complex parameters like eyes, flexes etc. In these cases, use [[$model]].
* <code>"shell.smd"</code> is the path to a ''reference.smd'' relative to the QC file's [[$cd|current directory]].
 
==Parameters==
* <code>name</code> can be any thing as it is only used in [[HLMV]].
 
* <code>smd</code> is the path to a reference smd relative to the [[$cd|current directory]].
 
==Example==
$modelname "weapons/shell.mdl"
$cdmaterials "models/weapons/"
'''$body "Shell" "shell.smd"'''
$sequence "idle" "shell.smd"






[[Category:QC Commands]]
[[Category:QC Commands]]

Revision as of 18:55, 25 April 2008

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

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

QC syntax example

$modelname "weapons/shell.mdl"
$cdmaterials "models/weapons/"
$body "Shell" "shell.smd"
$sequence "idle" "shell.smd"

Where

  • "Shell" can be anything as it is only used as a label in HLMV.
  • "shell.smd" is the path to a reference.smd relative to the QC file's current directory.