$modelname: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		 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.
		
	
| m (Russian language link) | TomEdwards (talk | contribs)  No edit summary | ||
| Line 1: | Line 1: | ||
| The [[$modelname]] [[QC command]] must be used. It specifies the  | 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 |   '''[[$modelname]]		"weapons\shell.mdl"''' | ||
|   [[$cdmaterials]]		"models |   [[$cdmaterials]]		"models\weapons\" | ||
|   [[$body]]		shell	"shell-ref.smd" |   [[$body]]		shell	"shell-ref.smd" | ||
|   [[$sequence]]	idle	"shell-idle.smd" |   [[$sequence]]	idle	"shell-idle.smd" | ||
| 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| | [[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: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.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.