$scale: Difference between revisions
Jump to navigation
Jump to search
Note:
Note:
Warning:
(Negative values are accepted, allows for flipping/mirroring animations) |
(DMX exists too ya know) |
||
Line 1: | Line 1: | ||
The [[$scale]] [[QC command]] multiplies the size of all subsequent | The [[$scale]] [[QC command]] multiplies the size of all subsequent model files. It does ''not'' affect values defined in the QC itself (e.g. [[$attachment]] locations). | ||
{{note|<code>$scale</code> only affects | {{note|<code>$scale</code> only affects model files that come after it in the QC. Specify it before any file references!}} | ||
{{note|<code>$scale</code> also accepts negative values. This can be used to flip/mirror animations or models if the compiled model is then decompiled.}} | {{note|<code>$scale</code> also accepts negative values. This can be used to flip/mirror animations or models if the compiled model is then decompiled.}} | ||
{{warning|<code>$scale</code> prevents [[flex animation]] from working when using the VTA format. This limitation can be bypassed by using the DMX format.}} | {{warning|<code>$scale</code> prevents [[flex animation]] from working when using the VTA format. This limitation can be bypassed by using the DMX format.}} |
Revision as of 21:05, 12 March 2018
The $scale QC command multiplies the size of all subsequent model files. It does not affect values defined in the QC itself (e.g. $attachment locations).

$scale
only affects model files that come after it in the QC. Specify it before any file references!
$scale
also accepts negative values. This can be used to flip/mirror animations or models if the compiled model is then decompiled.
$scale
prevents flex animation from working when using the VTA format. This limitation can be bypassed by using the DMX format.Example
$modelname "weapons/shell.mdl"
$cdmaterials "models/weapons/"
$scale 3 // before any SMDs
$body shell "shell_ref.smd"
$sequence idle "shell_idle.smd"