$modelname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(don't think this needs its param explaining...)
mNo edit summary
Line 1: Line 1:
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>.
The [[$modelname]] [[QC command]] must be used. It specifies the output ''folder'' (relative to <code>game_dir/models/</code>) and ''filename'' of the compiled model.
 
{{tip|Including <code>.mdl</code> is optional.}}


== QC syntax example ==
== QC syntax example ==
Line 9: Line 7:
  [[$body]] shell "shell-ref.smd"
  [[$body]] shell "shell-ref.smd"
  [[$sequence]] idle "shell-idle.smd"
  [[$sequence]] idle "shell-idle.smd"
* Including <code>.mdl</code> is optional but makes the script easier to understand.


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

Revision as of 09:58, 26 April 2008

The $modelname QC command must be used. It specifies the output folder (relative to game_dir/models/) and filename of the compiled model.

QC syntax example

$modelname		"weapons/shell.mdl"
$cdmaterials		"models/weapons/"
$body		shell	"shell-ref.smd"
$sequence	idle	"shell-idle.smd"
  • Including .mdl is optional but makes the script easier to understand.