$staticprop: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(usage - more accurate info) |
||
Line 1: | Line 1: | ||
$staticprop | $staticprop | ||
* Models where $staticprop has been used | * Models where $staticprop has been used may be placed as [[prop_static]] entities, or as [[prop_physics]] (if they also have physics data and a collision mesh). Note, despite the name, models compiled with $staticprop do not always need to be used as prop_statics. | ||
* Causes all bones to be collapsed in the object; this can only be used when there’s no animation associated with the object. | * Causes all bones to be collapsed in the object; this can only be used when there’s no animation associated with the object, and no ragdoll behavior. | ||
* This should be used for every non-animating, non- | * This should be used for every non-animating, non-ragdoll 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 | * For example: | ||
$modelname "props/rock.mdl" | $modelname "props/rock.mdl" | ||
$cdmaterials "models/props/" | $cdmaterials "models/props/" |
Revision as of 13:42, 9 November 2007
$staticprop
- Models where $staticprop has been used may be placed as prop_static entities, or as prop_physics (if they also have physics data and a collision mesh). Note, despite the name, models compiled with $staticprop do not always need to be used as prop_statics.
- Causes all bones to be collapsed in the object; this can only be used when there’s no animation associated with the object, and no ragdoll behavior.
- This should be used for every non-animating, non-ragdoll 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