$modelname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(don't think this needs its param explaining...)
Line 1: Line 1:
The [[QC command]] [[$modelname]] is used to specify the filepath and filename of the compiled model.  
The [[QC command]] <code>[[$modelname]]</code> is used to specify the output folder and name of the compiled model, relative to <code><game>/models/</code>.


==QC syntax==
{{tip|Including <code>.mdl</code> is optional.}}
$modelname "<filepath>/<filename>.mdl"
where
; <filepath>
: is relative to the <code>mod_name/models/</code> directory. If omitted, the file will be created in the <code>models/</code> directory.
; <filename>
: is the name of the compiled .mdl file.


==Example==
== QC syntax example ==
  '''$modelname "weapons/shell.mdl"'''
 
  $cdmaterials "models/weapons/"
  '''[[$modelname]] "weapons/shell.mdl"'''
  $model "Shell" "shell.smd"
  [[$cdmaterials]] "models/weapons/"
  $sequence "idle" "shell.smd"
  [[$body]] shell "shell-ref.smd"
  [[$sequence]] idle "shell-idle.smd"


[[Category:QC Commands]]
[[Category:QC Commands]]

Revision as of 00:34, 26 April 2008

The QC command $modelname is used to specify the output folder and name of the compiled model, relative to <game>/models/.

Tip.pngTip:Including .mdl is optional.

QC syntax example

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