$scale

From Valve Developer Community
Revision as of 05:17, 27 July 2008 by TomEdwards (talk | contribs)
Jump to navigation Jump to search

The QC command $scale multiplies the size of the input meshes by a float value. 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"