$staticprop

From Valve Developer Community
Revision as of 01:00, 26 April 2008 by TomEdwards (talk | contribs)
Jump to navigation Jump to search

The QC command $staticprop specifies that the model being compiled does not have any moving parts. This allows several useful optimisations to take place, so should be used whenever possible.

Note.pngNote:The command does not have anything to do with prop_static.

Effects

  • Collapses all bones
  • Allows VRAD to cast shadows using the collision model
  • Todo: Other?

QC syntax 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

Note how the command does not accept any parameters.