$modelname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Russian language link)
No edit summary
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 path and filename of the compiled model, relative to the current [[VPROJECT]] folder.


{{tip|By convention this should be the same name as the QC file, but it doesn't have to be.}}
{{tip|By convention this should be the same name as the QC file, but it doesn't have to be.}}
Line 5: Line 5:
== Example ==
== Example ==


  '''[[$modelname]] "weapons/shell.mdl"'''
  '''[[$modelname]] "weapons\shell.mdl"'''
  [[$cdmaterials]] "models/weapons/"
  [[$cdmaterials]] "models\weapons\"
  [[$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.
This model will be created at <code><game>\models\weapons\shell.mdl</code>.
 
{{otherlang:en}}
{{otherlang:en}}
{{otherlang:en:ru|$modelname:ru}}
{{otherlang:en:ru|$modelname:ru}}


[[Category:QC Commands|modelname]]
[[Category:QC Commands|m]]

Revision as of 06:16, 7 January 2009

The $modelname QC command must be used. It specifies the path and filename of the compiled model, relative to the current VPROJECT folder.

Tip.pngTip: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"

This model will be created at <game>\models\weapons\shell.mdl.

Template:Otherlang:en Template:Otherlang:en:ru