Difference between revisions of "$modelname"

From Valve Developer Community
Jump to: navigation, search
m
m (cat fix, minor note)
Line 1: Line 1:
 
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.
 
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.
  
== QC syntax example ==
+
{{tip|By convention this should be the same name as the QC file, but it doesn't have to be.}}
 +
 
 +
== Example ==
  
 
  '''[[$modelname]] "weapons/shell.mdl"'''
 
  '''[[$modelname]] "weapons/shell.mdl"'''
Line 10: Line 12:
 
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|M]]
+
[[Category:QC Commands|modelname]]

Revision as of 19:12, 28 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.

Tip.png Tip: By convention this should be the same name as the QC file, but it doesn't have to be.

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.