$body: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (increased quality)
Line 3: Line 3:
==Description==
==Description==


$body (name) (smd name)
$body "name" "smd"


Used for nearly every model except for characters when the model needs complex parameters like eyes, flexes etc. In theas cases, use [[$model]].
Used for nearly every model except for characters when the model needs complex parameters like eyes, flexes etc. In these cases, use [[$model]].


==Parameters==
==Parameters==
* (name) can be any thing as it is only ever used in [[HLMV]]. Should be in douple quotes.
* <code>name</code> can be any thing as it is only used in [[HLMV]].


* (smd name) The path to a reference smd, relative to the [[$cd|current path]]. Should be in douple quotes.
* <code>smd</code> is the path to a reference smd relative to the [[$cd|current path]].


==Example==
==Example==
$modelname "weapons/shell.mdl"<br />
$modelname "weapons/shell.mdl"
$cdmaterials "models/weapons/"<br />
$cdmaterials "models/weapons/"
'''$body "Shell" "shell.smd"'''<br />
'''$body "Shell" "shell.smd"'''
$sequence "idle" "shell.smd"
$sequence "idle" "shell.smd"

Revision as of 20:51, 13 October 2007

Specifies a reference smd file to be used as part of this model.

Description

$body "name" "smd"

Used for nearly every model except for characters when the model needs complex parameters like eyes, flexes etc. In these cases, use $model.

Parameters

  • name can be any thing as it is only used in HLMV.
  • smd is the path to a reference smd relative to the current path.

Example

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