$staticprop: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (otherlang2'd)
Line 1: Line 1:
{{otherlang2
|ru=$staticprop:ru
}}
The [[QC command]] <code>[[$staticprop]]</code> specifies that the model being compiled does not have any moving parts. Despite the name, it does ''not'' limit the model to use with [[prop_static]].
The [[QC command]] <code>[[$staticprop]]</code> specifies that the model being compiled does not have any moving parts. Despite the name, it does ''not'' limit the model to use with [[prop_static]].


Line 18: Line 21:
Note the absence of a value.
Note the absence of a value.


{{otherlang:en}}
{{otherlang:en:ru|$staticprop:ru}}


[[Category:QC Commands|s]]
[[Category:QC Commands|s]]

Revision as of 21:24, 9 March 2011

Template:Otherlang2 The QC command $staticprop specifies that the model being compiled does not have any moving parts. Despite the name, it does not limit the model to use with prop_static.

The command:

  • Removes all bones except the root.
  • Permits VRAD to use the object's collision mesh to calculate lightmap shadows.
  • Performs several other complex optimisations.

Example

$modelname		"weapons/shell.mdl"
$staticprop
$cdmaterials		"models/weapons/"
$body		shell	"shell-ref.smd"
$sequence	idle	"shell-idle.smd"	// A default animation is still required
$collisionmodel       "shell_PHYS.smd"

Note the absence of a value.