$body: Difference between revisions
Jump to navigation
Jump to search
TomEdwards (talk | contribs) m (→Options) |
No edit summary |
||
Line 1: | Line 1: | ||
The | 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" | |||
$body <name> <reference | |||
;<code><name></code> | ;<code><name></code> | ||
:Can be | :Can be anything you like. It is used as a convenient label by [[HLMV]] to distinguish the main mesh from other [[$bodygroup]] meshes. | ||
;<code><reference SMD></code> | ;<code><reference SMD></code> | ||
:Path to | :Path to and name of the 'reference' SMD, relative to the QC file's current directory. | ||
==QC syntax example== | ==QC syntax example== | ||
Line 18: | Line 16: | ||
[[$modelname]] "weapons/shell.mdl" | [[$modelname]] "weapons/shell.mdl" | ||
[[$cdmaterials]] "models/weapons/" | [[$cdmaterials]] "models/weapons/" | ||
'''[[$body]] | '''[[$body]] "Shell" "shell_ref.smd"''' | ||
[[$sequence]] idle " | [[$sequence]] idle "shell_idle.smd" | ||
[[Category:QC Commands]] | [[Category:QC Commands]] |
Revision as of 04:52, 26 April 2008
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"