Difference between revisions of "$modelname"
TomEdwards (talk | contribs) 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. | ||
− | == | + | {{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| | + | [[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.

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.