prop_static
You can help by updating the translation.
Also, please make sure the article complies with the alternate languages guide.
This notice is put here by LanguageBar template and if you want to remove it after updating the translation you can do so on this page.
| CStaticProp |
Не путайте с командой QC $staticprop.
prop_static - это внутренний точечная энтити, доступно для всех игр на движке
Source.
Он используется для дешёвого добавления моделей в мир. Он не может двигаться, видоизменяться в анимации или использоваться системой ввода/вывода. И на самом деле не является обычным объектом мира после компиляции карты. В большинстве случаев модели, добавляемые на карты, создаются как объекты prop_static.
Prop_static будет сталкиваться с другими объектами если имеет габарит столкновений, и, в отличии от всех других модельных объектов, освещается вершинным освещением и отбрасывает тени на карты освещения.
prop_static не расходует лимит записей Edict_t, а учитывается общим лимитом объектов VBSP . static_prop.
Ключ-параметры
- Collisions (solid) <целое число выбор>
- Принцип взаимодействия реквизита с другими объектами.
- 0 - Not solid (Бесплотный, без столкновений)
- 2 - Use bounding box (Использовать ограничивающий короб)
- 6 - Use VPhysics (Использовать VPhysics) (по умолчанию)
Примечание: Использование этого варианта с моделями без габарита столкновений приведёт к выводу предупреждения при загрузке карты, и будет применён вариант без столкновений. Если увидите такое предупреждение, измените этот ключ-параметр у всех объектов реквизита, использующих такую модель, на один из других вариантов.
-
Disable per-vertex lighting (disablevertexlighting) <булева переменная> (Во всех играх начиная с
)
- Реквизит будет освещён равномерно при помощи значения освещения, скопированного с его исходной точки. Включите это, если объект не затеняется другим объектом.
Важно: Enabling this overrides generatelightmaps!
Баг:Cascade shadows from
Black Mesa doesn't work properly with prop_static if vertex lighting is enabled. Use this property if cascade lighting hits a static prop. This looks better if used -StaticPropLighting3VRAD compile parameter, but it's still recommended.
Example.
-
Disable Self-Shadowing with per-vertex lighting (disableselfshadowing) <булева переменная> (Во всех играх начиная с
)
- Реквизит не будет отбрасывать тени на себя когда вычисляется вершинное освещение.
-
Ignore surface normal for computing per-vertex lighting (ignorenormals) <булева переменная> (Во всех играх начиная с
)
- Игнорировать нормали поверхности граней при расчёте вершинного освещения, что приводит к более равномерному затенению.
Совет: Подходит для тонких, полупрозрачных деталей, таких как листья реквизита растительности.
-
Alpha (renderamt) <целое число> (Во всех играх начиная с
)
- Значение альфа-канала для сокрытия объекта, где 0 означает полностью невидимый и 255 - полностью видимый.
-
Render Color (R G B) (rendercolor) <цвет КЗС> (Во всех играх начиная с
)
- Оттенок визуализации модели объекта.
Примечание: For games before L4D like Source 2013, you can use this tool as a alternate
-
Generate (and use) lightmaps for this static prop (generatelightmaps) <булева переменная> (Во всех играх начиная с
) (также в
)
-
Generate a lightmap for this prop, in addition to fallback per-vertex lighting. Requires
-StaticPropLightingto be enabled in VRAD. For more information, visit tf2maps.net.
Примечание: Lightmapping can be also faked on static props using $detailblendmode 8 or the Modulate shader in all games, although syncing the lighting can be difficult.
Предупреждение: Several caveats and limitations; see explanation above.
Примечание: (нет в
) While this KV does exist in Black Mesa's FGD, it is unused; Xengine does not support lightmapped props.
-
Lightmap Resolution X (lightmapresolutionx) <целое число> (Во всех играх начиная с
) (также в
)
-
Lightmap Resolution Y (lightmapresolutiony) <целое число> (Во всех играх начиная с
) (также в
)
- Размерности создаваемых карт освещения по осям X (или U) и Y (или V). (Используется если включен параметр Создавать карты освещения.)
Важно: Setting a high resolution will significantly slow down VRAD compile times and may look out of place compared to the much lower resolution brush and displacement lightmaps.
-
Enable Bounced Lighting (enablelightbounce) <булева переменная> (Во всех играх начиная с
) (также в
)
- Whether VRAD should create indirect lighting from this prop.
Примечание: This KV is parsed by VBSP++, but VRAD++ does not currently support static prop bounce. The flag used by
Garry's Mod's VRAD is written.
-
Disable Prop Combine (preventpropcombine) <булева переменная> (Во всех играх начиная с
)
- Prevent this static prop from combining with any other static props in VBSP.
-
Uniform Scaling (uniformscale) <число с плавающей запятой> (Во всех играх начиная с
)
- Масштаб размера модели статичного реквизита.
Баг:In Hammer, 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). [нужно проверить в ?]- Нужно сделать: add scaling kvs from p2ce
-
Name (targetname) <объект источник> (только в
)
-
Имя объекта, по которому другие объекты ship_base_interaction
могут ссылаться на этот объект [Как?]. Also useful regardless of game for being able to recognize specific prop_static entities in Entity Report. The name will not be in the compiled BSP.
Studiomodel:
- Skin (skin) <целое число>
- Некоторые модели имеют множественные облики. Нумерация обликов начитается с 0.
Совет: Hammer's model browser automatically updates this value if you use it to view different skins.
Баг:Static props with multiple skins will always calculate texture shadows based upon the alpha channel(s) from the default skin's texture(s), even though the alternative skins' alpha textures are loaded by VRAD. (подтверждено в:
)
- Lighting Origin (LightingOrigin) <целевой объект>
- Select an entity (preferably info_lighting) from which to sample lighting instead of the entity's origin, if per-vertex lighting is disabled on this prop. Also used, regardless of how model is lit, to dictate where to grab the nearest env_cubemap from.
Тени:
- Disable Shadows (disableshadows) <булева переменная>
- Prevents the prop from casting shadows onto lightmaps and other static props. Does not affect shadow mapping.
Баг:Shadows cast from static props do not influence ambient cubes, causing dynamically lit entities which are in the static props' shadows to be lit as if they weren't in the shadows. (подтверждено в: 

)
Обходной приём: For particularly large solid props which are lit purely by the sun (such as buildings), it may be desirable to place blocklight brushes inside the prop. Of course, this doesn't work for props with cutouts or transparency (such as large trees), and care will need to be taken with the shape of the brush to ensure it doesn't shadow the prop. Additionally, this sometimes doesn't work for props which are indoors or already in the shade, as the blocklight shadows will multiply with the prop shadows, resulting in the lightmap shadows being too dark.
-
Disable Shadow Depth (disableshadowdepth) <булева переменная> (Во всех играх начиная с
)
- Отключение отображения глубины теней (для проецируемых текстур) на этом объекте.
-
Disable flashlight (disableflashlight) <булева переменная> (Во всех играх начиная с
)
- Отключение проецируемого текстурного освещения и теней на этом объекте.
-
Render in Fast Reflections (drawinfastreflection) <булева переменная> (Во всех играх начиная с
)
-
If enabled, this entity will render in fast water reflections (i.e. when a water material specifies
$reflectonlymarkedentities) and in the world impostor pass.
Примечание: Отключение теней применяется на тени карт освещения для prop_static, не RTT.
BaseFadeProp:
- Start Fade Dist (fademindist) <число с плавающей запятой>
- Distance at which the entity starts to fade.
- End Fade Dist (fademaxdist) <число с плавающей запятой>
- Max fade distance at which the entity is visible.
- If start fade is <0, the entity will disappear instantly when end fade is hit.
- If end fade is <0, the entity won't disappear at all. (This is the default behavior.)
- The values will scale appropriately if the entity is in a 3D Skybox.
- Fade Scale (fadescale) <число с плавающей запятой>
-
If you specify so in worldspawn, or if the engine is running below DirectX 8 (DX7 in
), 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, while those 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.
-
Screen space fade (screenspacefade) <булева переменная> (удалено начиная с
)
- Принцип определения расстояния исчезновения. Если параметр отключен, дальность определяется как расстояние от точки обзора до объекта в дюймах. Если параметр включен, дальность определяется по размеру объекта на экране в пикселях.
-
Minimum / Maximum DX Level (mindxlevel / maxdxlevel) <целое число выбор> (удалено начиная с
)
-
Объект не будет существовать, если движок будет работать вне указанного диапазона версий DirectX.
Варианты
Предупреждение: If these are used, the object may break when the user switches their DirectX settings.[missing string] - 0 - По умолчанию (без ограничений)
- 60 - DirectX 6 (Отсутствует в FGD! for mindxlevel)
- 70 - DirectX 7
- 80 - DirectX 8 (GeForce4 Ti & FX 5000 series)
- 81 - DirectX 8.1 (GeForce FX 5800, 5900 & Radeon 8500/9100 and 9000/9200)
- 90 - DirectX 9 Shader Model 2
- 92 - OpenGL аналогичен DirectX 9 Shader Model 2 (using ToGL;

only) Отсутствует в FGD! - 95 - DirectX 9 Shader Model 3 (Во всех играх начиная с
) - 98 - DirectX 9 Shader Model 3 на Xbox 360 (
only) Отсутствует в FGD!
Совет: Set maxdxlevelto lower nonzero number such as 1 or 50 (along withdisablevertexlightingset to 1) to create a prop that can cast shadows, but isn't rendered in-game. This is cheaper than using blocklight brushes, as it does not count towards brush and brushside limits.
-
Minimum / Maximum Effect Details Level (mincpulevel / maxcpulevel) <целое число выбор> (Во всех играх начиная с
)
-
Не отображать для игроков с уровнем детализации эффектов, превышающим минимум или максимум.
Варианты - 0: По умолчанию ("Low" for
mincpulevel, "High" formaxcpulevel) - 1: Низкий
- 2: Средний
- 3: Высокий
- 0: По умолчанию ("Low" for
-
Minimum / Maximum Shader Details Level (mingpulevel / maxgpulevel) <целое число выбор> (Во всех играх начиная с
)
-
Не отображать для игроков с уровнем детализации оттенений, превышающим минимум или максимум.
Варианты - 0: По умолчанию ("Low" for
mingpulevel, "Very High" formaxgpulevel) - 1: Низкий
- 2: Средний
- 3: Высокий
- 4: Очень высокий
- 0: По умолчанию ("Low" for
Совет: Set mingpulevelormincpulevelto a very large number such as 20 (along withdisablevertexlightingset to 1) to create a prop that can cast shadows, but isn't rendered in-game. This is cheaper than using blocklight brushes, as it does not count towards brush and brushside limits.
- Pitch Yaw Roll (Y Z X) (angles) <углы>
- Ориентация этого объекта в мире. Тангаж (pitch) - поворот по оси Y, рысканье (yaw) - поворот по Z и крен(roll) - поворот по X.
Известные ограничения
Вершинное освещение
Lighting can behave differently on a particular static prop depending on its settings and how its model and materials were authored.
A prop with disabled per-vertex lighting will be vertex-lit based on its $illumposition or lightingorigin and appear similar to dynamic props. This is the only behavior available in
.
With per-vertex lighting enabled (available since
via -StaticPropLighting), VRAD will calculate and bake lighting and color information for each vertex of the model, typically resulting in a better, more realistic in-game look.
However, sometimes it can lead to undesireable stretches of shadow or highlights, especially on low-poly models or props with elongated proportions, like trees. The higher the poly count, the more accurate per-vertex lighting can be. It can become expensive on very high-poly models, so creating LODs is advisable.
В версиях платформы, предшествующих
Counter-Strike: Global Offensive и
Strata Source, если какой-либо материал модели реквизита использует маску рельефа ($bumpmap, $normalmap или $phong), вершинное освещение будет принудительно отключено. Это происходит, если в любом из обликов используется $bumpmap или $phong, даже если он не выбран.
The
CS:GO engine branch and derivatives support per-vertex lighting on normal-mapped and $phong materials, and do not suffer from this limitation. However, if any prop is normal-mapped, all props will be lit as if they were normal-mapped, increasing VRAD compile times.
Карты освещения на статичном реквизите
In
Source 2013 Multiplayer,
Ветвь TF2, and
Garry's Mod, VRAD can apply lightmaps onto static props, allowing for better blending between brush geometry and models. Однако, как и в случае с вершинным освещением, эта функция не может использоваться совместно с $bumpmap, $phong или $normalmap.
When baking a lightmap for a model, VRAD will use the same UV and scaling as the $basetexture of the model's first material of its first skin (taking $basetexturetransform into account, if present).
This means that:
- Models created with overlapping UV islands will get bad lightmaps, as they'll also be overlapping;
- If the model has multiple skins and or materials, only the first one will be used to lay down the lightmaps, potentially making overlapping worse;
- The lightmap will be cropped by the UV edges (tiling UVs are not supported);
- Low-res lightmaps can bleed over the edges of the UV.
To make matters worse, the lightmap generated for props by vanilla VRAD comes as RGB888 (24-bit SDR) in a special PPL format, which can make color banding noticeable in HDR mode (especially if a light source is close to the prop).
Garry's Mod generates and uses separate RGBA16161616f lightmaps for HDR mode.
Finally, models with LoDs will have a lightmap generated for each LoD, which can greatly increase the amount of VRAM used by an individual prop, making level of detail models potentially more expensive than always using the highest quality model.
See the $lightmap page for a full list of caveats with lightmapped props.
Propper++ can bake a model's $basetexture into a non-overlapping non-tiling atlas, mitigating some of these issues at a minor quality loss.- Use the QC command
$checkuv 0to1 overlapto prevent a model from compiling if it has incompatible UVs.
Ограничения компилятора для статичного реквизита
VBSP имеет ограничение максимального количества объектов на карте, включая внутренние объекты, и поскольку prop_static расходует этот лимит, слишком большое количество таких объектов может привести к сбою компиляции.
- В


может быть до 8192 объектов (считая статичный реквизит); - В

- до 16384; - В
- до 20480; - В
- до 65536 (работает в любой
игре).
Поскольку, это ограничение учитывает все объекты карты, реальное максимальное количество объектов статичного реквизита будет меньше.
public/bspfile.h). A BSP file can theoretically contain over 4 billion static props. bsppack.dll, and pack/compress manually with BSPZIP++ afterwards (or, if not compressing the map, use Принудительная согласованность
Для обеспечения согласованности поведения объектов, модели со встроенными физическими данными не могут быть prop_static, если не используется allowstatic. Используйте вкладку Info (Информация) в Обзоре моделей Hammer, чтобы проверить совместимость.
Модели с частями тела
Prop_static does not support selectable $bodygroup submodels; if there are any, only the first one will be used by the game. Despite this, VRAD will generate lightmap shadows from all submodels present in the MDL! (tested in
)
Модели с наборами обликов
While prop_static does support selectable $texturegroup skins, VRAD does not properly load the appropriate skin. Since VRAD only cares about the alpha channel of the textures, this is only an issue for materials that would cast texture shadows. Texture shadows will be cast based upon the first skin, even though the alpha textures for the other skins are loaded into memory. (tested in
)
Распространённые ошибки
VBSP удаляет модель
В таком виде модель неподходит для использования в качестве prop_static. Обратите внимание, что это не означает, что модель не получится использовать с prop_static.
Если модель не имеет признака "static" в программе просмотра моделей (была скомпилирована без $staticprop):
- Вместо этого необходимо использовать объекты prop_dynamic или prop_physics_override, если нужны физические взаимодействия.
Если это созданная вами модель:
- Значит, либо в QC-файле модели отсутствует $staticprop, либо в данных
prop_dataотсутствует значениеallowstatic 1. Пример:
$KeyValues { prop_data { "base" "Metal.Medium" "allowstatic" "1" } }
Если эта модель создана не вами, и она имеет признак "static" в программе просмотра моделей (была скомпилирована с $staticprop):
- В
, добавьте -allowdynamicpropsasstatic в параметры компилятора VBSP. - В
, используйте
VBSP++ и добавьте -allowdynamicpropsasstatic в параметры компилятора VBSP. - В
или
, используйте VBSP от
Slammin' Source Map Tools (
или
), VBSP prop_static fix ((только в src13sp) ),
Mapbase (
only), or
Garry's Mod (
only). - В иных случаях, используйте
Source Model Skin Editor, чтобы добавить "allowstatic" "1"в prop_data модели, и вернуться к работе над исходниками модели после компиляции карты.
This can also happen on breakable props that have no moving parts, but use bones to spawn the gibs at specific locations.
Смещённая модель
Если по какой-то причине модель расположена неправильно, проверьте указанное имя кости в $definebone модели, оно должно быть без косых черт. Также проверьте координаты местоположения кости, значения должны быть нулевыми.