$model: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
Specifies a reference smd file to be used as part of this model.
<code>$model (name) (filename)</code>
 
* Specifies the smd file to be load. Used mainly for characters when the model needs complex parameters like eyes, flexes etc. In other cases, use $body.
 
* Specifies a reference smd file to be used as part of this model.


==Description==
==Description==

Revision as of 18:51, 7 November 2007

$model (name) (filename)

  • Specifies the smd file to be load. Used mainly for characters when the model needs complex parameters like eyes, flexes etc. In other cases, use $body.
  • Specifies a reference smd file to be used as part of this model.

Description

$model "name" "smd"

Used mainly for characters when the model needs complex parameters like eyes, flexes etc. In other cases, use $body.

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/"
$model "Shell" "shell.smd"
$sequence "idle" "shell.smd"