From Valve Developer Community
Revision as of 14:52, 24 May 2019 by Deprecated (talk | contribs) (Added SystemLevelChoice)
Jump to: navigation, search
Русский 简体中文
Not to be confused with the $staticprop and allowstatic (Prop_data) QC commands.

prop_static is a internal point entity available in all Source games. It is used to cheaply add a model to the world. It cannot move, animate, or accept input, and in fact doesn't actually exist as an entity after the map has been compiled. The vast majority of models appearing in a typical map are prop_static.

A prop_static will collide with other objects assuming it has a collision mesh, and, unlike all other model entities, is lit per-vertex and casts shadows onto lightmaps.

Note.png Note: Models with $bumpmapped materials are never lit per-vertex, except in <Counter-Strike: Global Offensive>.
Note.png Note: In <Team Fortress 2><Counter-Strike: Source><Day of Defeat: Source><Black Mesa (Source)> and Half-Life 2 Deathmatch, one has the option of using lightmaps on static props using the static prop's UVs.
Note.png Note: In most Source games, a single level is limited to 4096 prop_statics. The limit is 8192 in <Alien Swarm>[Portal 2] and 16384 in <Counter-Strike: Global Offensive>. If the limit is reached, VBSP will fail to compile the map.


In order to enforce consistency of behaviour, models with embedded physics data cannot be prop_static. Use the Hammer Model Browser's info tab to check for support.

See also


Collisions <choices>
How the prop should interact with other objects.
  • Not solid
  • Use bounding box
  • Use VPhysics (default)
    Note.png Note: Using this setting on models without a collision mesh will cause the engine to throw a warning upon loading the map. If you see such a warning, reset the collision of all props using the noted model to one of the other two choices.
Screen Space Fade <bool>
If enabled, the prop will fade out based on how many screen pixels it covers. The start and end fade distances come to represent the pixels that the prop covers at the start and end of its fade when this is enabled.
Lighting Origin <targetname>
An info_lighting from which to sample lighting (instead of the model's origin). Disables per-vertex lighting.
Disable Vertex lighting <bool>
Prop will be lit uniformly with a lighting value sampled from its origin. Enable this if the entity is not shadowed by another object.
Disable Self-Shadowing with vertex lighting <bool>
Prop will not cast shadows on itself when per-vertex lighting is calculated.
Ignore surface normal for computing vertex lighting <bool>
A surface normal defines the direction from which each polygon is brightest-lit, and how much light is received. You can ignore this setting most of the time.
Tip.png Tip: This is usually used on tree branches and foilage. Enable this on foilage for better lighting.
Generate (and use) lightmaps for this static prop <choices> (in all games since <Team Fortress 2>) Visit for more information.
Note.png Note: Lightmapping can be also faked on static props using the Modulate shader in all games, although syncing the lighting can be difficult.
Bug.png Bug: <Counter-Strike: Source> On Counter-Strike Source, this setting doesn't work on models with multiple skins.
  • No (default)
  • Yes
Lightmap Resolution X <integer> (in all games since <Team Fortress 2>)
The resolution of the generated lightmap in the X (or U) direction. (Only used if Generate Lightmaps is Yes.)
Lightmap Resolution Y <integer> (in all games since <Team Fortress 2>)
The resolution of the generated lightmap in the Y (or V) direction. (Only used if Generate Lightmaps is Yes.)
Uniform Scaling <float> (in all games since <Counter-Strike: Global Offensive>)
Evenly scales a given model along the X Y Z axis.
Bug.png Bug: In VHE, Undoing/Redoing any changes (whether they are slight unit movements or Scale changes) will result in the prop appearing 'normal' sized in the 3D Textured Viewport (the model only appears normal sized and the value given is still shown upon reload of the vmf).
Disable Prop Combine <bool> (in all games since <Counter-Strike: Global Offensive>)
Prevent this static prop from combining with any other static props in vbsp.
Enable Bounced Lighting <bool> (in all games since <Counter-Strike: Global Offensive>)
Whether VRAD should create indirect lighting from this prop.


World Model (model) <string>
The model this entity should appear as. 128-character limit.
Skin (skin) <integer>
Some models have multiple skins. This value selects from the index, starting with 0.
Tip.png Tip: Hammer's model browser automatically updates this value if you use it to view different skins.
Model Scale (modelscale) <float> (in all games since <Source><Source>)
A multiplier for the size of the model.


Disable Shadows (disableshadows) <boolean>
Prevents the entity from creating cheap render-to-texture shadows, or lightmap shadows if the entity is a prop_static. Does not affect shadow mapping.
Disable ShadowDepth (disableshadowdepth) <boolean> (in all games since [Portal 2])
Used to disable rendering into shadow depth (for projected textures) for this entity.
Projected Texture Cache (shadowdepthnocache) <choices> (in all games since [Portal 2])
Used to hint projected texture system whether it is sufficient to cache shadow volume of this entity or to force render it every frame instead.
  • 0 : Default
  • 1 : No cache - render every frame
  • 2 : Cache it - render only once
Disable flashlight (disableflashlight) <boolean> (in all games since [Portal 2])
Used to disable projected texture lighting and shadows on this entity.


Render in Fast Reflections (drawinfastreflection) <boolean> (in all games since [Portal 2])
If enabled, this entity will render in fast water reflections (i.e. when a water material specifies $reflectonlymarkedentities) and in the world impostor pass.
Note.png Note: Disable shadows applies to lightmap shadows for prop_static, not RTTs.


Start Fade Dist (fademindist) <float>
Distance at which the prop starts to fade.
End Fade Dist (fademaxdist) <float>
Max fade distance at which the prop is visible.
  • If start fade is <0, the prop will disappear instantly when end fade is hit.
  • If end fade is <0, the prop won't disappear at all. (This is the default behaviour.)
The values will scale appropriately if the prop is in a 3D Skybox.
Fade Scale (fadescale) <float>
If you specify so in worldspawn, or if the engine is running below DirectX 8 (DX7 in Ep1), props will fade out even if the fade distances above aren't specified. This value gives you some control over when this happens: numbers smaller than 1 cause the prop to fade out at further distances, and greater than 1 cause it to fade out at closer distances. Using 0 turns off the forced fade altogether. See also the QC command $noforcedfade.


Minimum DX Level (mindxlevel) <choices>
The entity will not exist if the engine is running outside the given range of DirectX Versions. Replaced by SystemLevelChoice from <Left 4 Dead> Left 4 Dead onwards.
Warning.png Warning: If these are used, the object may break when the user switches their DirectX settings.
Maximum DX Level (maxdxlevel) <choices>


Minimum CPU Level (mincpulevel) <choices> (in all games since <Left 4 Dead>)
A user with a CPU level lower than this will not see this object rendered in-game. CPU levels are determined by the Effect detail setting.
Maximum CPU Level (maxcpulevel) <choices> (in all games since <Left 4 Dead>)
  • 0: Default
  • 1: Low
  • 2: Medium
  • 3: High
Minimum GPU Level (mingpulevel) <choices> (in all games since <Left 4 Dead>)
A user with a GPU level lower than this will not see this object rendered in-game. GPU levels are determined by the Shader detail setting.
Maximum GPU Level (maxgpulevel) <choices> (in all games since <Left 4 Dead>)
  • 0: Default
  • 1: Very low
  • 2: Low
  • 3: Medium
  • 4: High


Pitch Yaw Roll (Y Z X) (angles) <angle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

<The Ship> The Ship KVs

targetname <target_source>
The name that ship_base_interaction entities refer to this entity by.