$staticprop: Difference between revisions
Jump to navigation
Jump to search
Note:Despite the name, compiling with $staticprop does not limit the model to use with prop_static.
No edit summary |
TomEdwards (talk | contribs) (There are more uses of models than the prop_ ents! (also recat)) |
||
Line 1: | Line 1: | ||
The [[$staticprop]] [[QC command]] specifies that the model being compiled does not have any moving parts. | The [[$staticprop]] [[QC command]] specifies that the model being compiled does not have any moving parts. | ||
{{note|Despite the name, | {{note|Despite the name, compiling with [[$staticprop]] does ''not'' limit the model to use with [[prop_static]].}} | ||
[[$staticprop]] does apply several useful optimisations to the model, so it should be used whenever possible: | [[$staticprop]] does apply several useful optimisations to the model, so it should be used whenever possible: | ||
Line 19: | Line 19: | ||
Note how the command does not accept any parameters. | Note how the command does not accept any parameters. | ||
[[Category:QC Commands]] | [[Category:QC Commands|S]] |
Revision as of 12:11, 27 April 2008
The $staticprop QC command specifies that the model being compiled does not have any moving parts.

$staticprop does apply several useful optimisations to the model, so it should be used whenever possible:
- It collapses all bones in the model into a single, rigid bone; so do not use for models with skeletal animation or ragdoll behavior.
- VRAD will use the object's collision model when calculating Lightmaps.
- 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.