$modelname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<code>$modelname (filename)</code>
The [[QC command]] [[$modelname]] is used to specify the filepath and filename of the compiled model.


* Specifies the filename of the compiled model. This filename should be relative to the models/ directory in the mod.
==QC syntax==
 
  $modelname "<filepath>/<filename>.mdl"
==Description==
where
 
; <filepath>
  $modelname "path/to/model.mdl"
: is relative to the <code>mod_name/models/</code> directory. If omitted, the file will be created in the <code>models/</code> directory.
 
; <filename>
==Parameters==
: is the name of the compiled .mdl file.
* This filename should be relative to the models/ directory in the mod.


==Example==
==Example==

Revision as of 07:19, 31 March 2008

The QC command $modelname is used to specify the filepath and filename of the compiled model.

QC syntax

$modelname "<filepath>/<filename>.mdl"

where

<filepath>
is relative to the mod_name/models/ directory. If omitted, the file will be created in the models/ directory.
<filename>
is the name of the compiled .mdl file.

Example

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