$staticprop: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(there is confirmation in this article Prop_Types_Overview (prop_static))
Line 5: Line 5:
  $staticprop
  $staticprop


This should be used for every non-animating, non-physics prop, as it increases the render speed for the model.<!-- Verify this: This will also cause the model's shadow to be generated from its collision model when the map is compiled. -->
This should be used for every non-animating, non-physics prop, as it increases the render speed for the model.
Models where $staticprop has been used must be placed with the [[prop_static]] entity.
This will also cause the model's shadow to be generated from its collision model when the map is compiled.


==Example==
==Example==

Revision as of 19:40, 14 October 2007

Causes all bones to be collapsed.

Description

$staticprop

This should be used for every non-animating, non-physics prop, as it increases the render speed for the model. Models where $staticprop has been used must be placed with the prop_static entity. This will also cause the model's shadow to be generated from its collision model when the map is compiled.

Example

$modelname "props/rock.mdl"
$cdmaterials "models/props/"
$model "Rock" "rock.smd"
$sequence "idle" "rock.smd"
$staticprop