$scale: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
$scale (scale)
The [[QC command]] '''<code>$scale</code>''' modifies the size of the compiled model by a [[float]] value. The default value is <code>1</code>.
* Scales the model by the given scale amount.
* A scale of 1.0 makes the model normal sized, 0.5 is half sized, and 2.0 is double sized.
* Note that the $scale command must be given before any .smd file references, else it will not be applied.  


{{note|<code>$scale</code> only affects commands that are below it in the QC. For this reason, be sure to specify it on the first line!}}


[[Category:QC Commands]]
== Example ==
 
'''$scale 3'''
[[$modelname]] "weapons/shell.mdl"
[[$cdmaterials]] "models/weapons/"
[[$body]] shell "shell-ref.smd"
[[$sequence]] idle "shell-idle.smd"
 
[[Category:QC Commands|s]]

Revision as of 12:01, 27 April 2008

The QC command $scale modifies the size of the compiled model by a float value. The default value is 1.

Note.pngNote:$scale only affects commands that are below it in the QC. For this reason, be sure to specify it on the first line!

Example

$scale			3
$modelname		"weapons/shell.mdl"
$cdmaterials		"models/weapons/"
$body		shell	"shell-ref.smd"
$sequence	idle	"shell-idle.smd"