$modelname: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
The [[$modelname]] [[QC command]] must be used. It specifies the path and filename of the compiled model, relative to the <code>\models</code> folder of the current [[VPROJECT]] folder.
The [[QC command]] '''<code>$modelname</code>''' must always be used. It specifies the path and filename of the compiled model, relative to the <code>\models</code> folder of [[VPROJECT]].


{{tip|By convention this should be the same name as the QC file, but it doesn't have to be.}}
{{warning|Studiomdl won't create folders that don't exist. The path specified by <code>$modelname</code> must exist before compiling begins.}}


== Example ==
== Example ==

Revision as of 07:59, 7 January 2009

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

Warning.pngWarning:Studiomdl won't create folders that don't exist. The path specified by $modelname must exist before compiling begins.

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