$staticprop: Difference between revisions
Jump to navigation
Jump to search
Note:The command does not have anything to do with prop_static.
(usage - more accurate info) |
TomEdwards (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
The [[QC command]] '''<code>$staticprop</code>''' 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|The command does ''not'' have anything to do with [[prop_static]].}} | |||
* | |||
* | == Effects == | ||
* | |||
$modelname " | * Collapses all bones | ||
* Allows [[Vrad|VRAD]] to cast shadows using the collision model | |||
* {{todo|Other?}} | |||
== QC syntax example== | |||
[[$modelname]] "weapons/shell.mdl" | |||
'''$staticprop''' | '''$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. | |||
[[Category:QC Commands]] | [[Category:QC Commands]] |
Revision as of 01:00, 26 April 2008
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.

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.