$modelname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 8: Line 8:
  [[$sequence]] idle "shell-idle.smd"
  [[$sequence]] idle "shell-idle.smd"


* Including <code>.mdl</code> is optional but makes the script easier to understand.
Including <code>.mdl</code> is optional but makes the script easier to understand.


[[Category:QC Commands]]
[[Category:QC Commands|M]]

Revision as of 11:56, 27 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.