Difference between revisions of "$staticprop"

From Valve Developer Community
Jump to: navigation, search
m
Line 1: Line 1:
Causes all bones to be collapsed.
 
 
==Description==
 
 
 
  $staticprop
 
  $staticprop
 
+
* Models where $staticprop has been used must be placed with the [[prop_static]] entity.
This should be used for every non-animating, non-physics prop, as it increases the render speed for the model.
+
* Causes all bones to be collapsed in the object; this can only be used when there’s no animation associated with the object.
Models where $staticprop has been used must be placed with the [[prop_static]] entity.
+
* This should be used for every non-animating, non-physics prop, as it increases the render speed for the model. You want to use it wherever possible though, because it will make the models render more quickly.  
This will also cause the model's shadow to be generated from its collision model when the map is compiled.
+
* This will also cause the model's shadow to be generated from its collision model when the map is compiled.
 
+
* For example
==Example==
 
 
  $modelname "props/rock.mdl"
 
  $modelname "props/rock.mdl"
 
  $cdmaterials "models/props/"
 
  $cdmaterials "models/props/"

Revision as of 02:56, 8 November 2007

$staticprop
  • Models where $staticprop has been used must be placed with the prop_static entity.
  • Causes all bones to be collapsed in the object; this can only be used when there’s no animation associated with the object.
  • This should be used for every non-animating, non-physics prop, as it increases the render speed for the model. You want to use it wherever possible though, because it will make the models render more quickly.
  • This will also cause the model's shadow to be generated from its collision model when the map is compiled.
  • For example
$modelname "props/rock.mdl"
$cdmaterials "models/props/"
$model "Rock" "rock.smd"
$sequence "idle" "rock.smd"
$staticprop