$scale: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
The '''<code>$scale</code>''' [[QC command]] multiplies the size of all subsequent SMDs. It does ''not'' affect values defined in the QC itself (e.g. [[$attachment]] locations).
The [[$scale]] [[QC command]] multiplies the size of all subsequent SMDs. It does ''not'' affect values defined in the QC itself (e.g. [[$attachment]] locations).


{{note|<code>$scale</code> only affects SMDs that come after it in the QC. Specify it before any file references!}}
{{note|<code>$scale</code> only affects SMDs that come after it in the QC. Specify it before any file references!}}

Revision as of 05:23, 2 January 2012

The $scale QC command multiplies the size of all subsequent SMDs. It does not affect values defined in the QC itself (e.g. $attachment locations).

Note.pngNote:$scale only affects SMDs that come after it in the QC. Specify it before any file references!
Warning.pngWarning:$scale prevents flex animation from working.

Example

$modelname		"weapons/shell.mdl"
$cdmaterials	"models/weapons/"

$scale		3		// before any SMDs
$body		shell	"shell_ref.smd"
$sequence	idle	"shell_idle.smd"