$scale

From Valve Developer Community
Revision as of 17:10, 28 April 2008 by JeffLane (talk | contribs) (minor cleanup and info)
Jump to navigation Jump to search

The QC command $scale modifies the size of the compiled model by a float value. A scale of 1.0 makes the model normal-sized, 0.5 is half-sized, and 2.0 is double-sized. The default value is 1.

Note.pngNote:$scale only affects .SMD file references (such as $body or $model) that are below it in the QC. For this reason, be sure to specify it before any file references!

Syntax

$scale <scale amount>

Example

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