$model: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
==Description==
==Description==


$model (name) (smd name)  
$model (name) (filename)  


Used mainly for characters when the model needs complex parameters like eyes, flexes etc. In other cases, use [[$body]].
Used mainly for characters when the model needs complex parameters like eyes, flexes etc. In other cases, use [[$body]].
Line 10: Line 10:
* (name) can be any thing as it is only ever used in [[HLMV]]. Should be in douple quotes.
* (name) can be any thing as it is only ever used in [[HLMV]]. Should be in douple quotes.


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


==Example==
==Example==

Revision as of 09:28, 13 October 2007

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

Description

$model (name) (filename)

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 ever used in HLMV. Should be in douple quotes.
  • (filename) The path to a reference smd, relative to the current path. Should be in douple quotes.

Example

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