$body: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 10: Line 10:
* <code>name</code> can be any thing as it is only used in [[HLMV]].
* <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 path]].
* <code>smd</code> is the path to a reference smd relative to the [[$cd|current directory]].


==Example==
==Example==

Revision as of 19:43, 14 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.

Example

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