$staticprop: Difference between revisions
Jump to navigation
Jump to search
m (otherlang2'd) |
mNo edit summary |
||
Line 6: | Line 6: | ||
The command: | The command: | ||
* Removes all bones except the root. | * Removes all bones except the root. Obviously do not use for ragdolls or animated models. | ||
* Permits [[Vrad|VRAD]] to use the object's [[collision mesh]] to calculate [[lightmap]] shadows. | * Permits [[Vrad|VRAD]] to use the object's [[collision mesh]] to calculate [[lightmap]] shadows. | ||
* Performs several other complex optimisations. | * Performs several other complex optimisations. |
Revision as of 22:16, 18 May 2018
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. Obviously do not use for ragdolls or animated models.
- 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.