point_spotlight
< Ru
Jump to navigation
Jump to search
point_spotlight
- это точечная энтити , доступно для всех игр на движке Source. Представляет из себя light_dynamic с двумя дополнительными спрайтовыми эффектами свечения: луч для наблюдателей снаружи конуса света и гало для наблюдателей внутри конуса света. Эту энтити часто используют для создания прожекторов.
Функционал light_dynamic
внутри этой энтити можно отключить, используя флаг 'No Dynamic Light'. В таком состоянии энтити не будет по-настоящему освещать другие объекты самостоятельно и может использоваться вместе с light_spot или env_projectedtexture (или newLight_Spot , если Вы используете Black Mesa).


light_dynamic
, даже если флаг 'No Dynamic Light' выключен. [todo tested in ?]
sprites/glow_test02.vmt
. Это можно изменить, если Вы поставляете собственные бинарные файлы, перейдя на строку 351 в point_spotlight.cpp в проекте сервера и заменив путь на свой собственный материал.
spotlight_end
, чтобы создавать свои спрайтовые эффекты. Это означает, что один point_spotlight
на самом деле представляет собой три разных энтити, включая сам point_spotlight
. Все они влияют на лимит энтити .Нужно сделать: Указать способ установки собственных материалов через параметры этой энтити

point_spotlight, beam, spotlight_end
. В 

point_spotlight
переделана в
сугубо серверный эдикт. Так же в 
point_spotlight
и spotlight_end
будут удалены. Таким образом статичный прожектор будет занимать только 1 эдикт.

No Dynamic Light
, то тогда она создаст динамический источник 



Параметры
- Ignore Solid (IgnoreSolid) <boolean > Отсутствует в FGD!
- Если выставлен, то этот прожектор не будет сталкиваться с твёрдыми телами.(только в
)
- Spotlight Length (SpotlightLength) <integer >
- Длина луча прожектора.
- Spotlight Width (SpotlightWidth) <integer >
- Ширина луча прожектора.
- Color (R G B) (rendercolor) <color255 >
- Цвет прожектора.
- HDR color scale. (HDRColorScale) <float >
- Число с плавающей точкой, на которое будет умножен цвет спрайта при игре в режиме HDR.
- Halo size scale. (HaloScale) <float > (Во всех играх начиная с
)
- Число с плавающей точкой, определяющее размер гало.
См. также: Generic Keyvalues, Inputs and Outputs available to all entities
Parentname:
- Parent (parentname) <targetname >
- Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
RenderFields:
- Render Mode (rendermode) <choices>
- Set a non-standard rendering mode on this entity.
Render Modes
- Render FX (renderfx) <choices>
- Various somewhat legacy alpha effects. See render effects
- Render Amount / Transparency (renderamt) <integer 0–255>
- Transparency amount, requires a Render Mode other than Normal. 0 is invisible, 255 is fully visible.
- Render Color (R G B) (rendercolor) <color255 >
- Color tint.
- Disable Receiving Shadows (disablereceiveshadows) <boolean >
- Prevent the entity from receiving shadows on itself.
- 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.
- Минимальный / Максимальный уровень DX (mindxlevel / maxdxlevel) <integer choices> (удалено начиная с
)
- Энтити не будет существовать, если графический движок будет работать вне данных версий ПО - DirectX Versions.
Выбор Предупреждение:If these are used, the object may break when the user switches their DirectX settings.[missing string]
- 0 - Default (без привязки)
- 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 SM2
- 92 - OpenGL equivalent to DirectX 9 Shader Model 2 (using ToGL;
only) Отсутствует в FGD!
- 95 - DirectX 9 SM3 (Во всех играх начиная с
)
- 98 - DirectX 9 Shader Model 3 на Xbox 360 (
only) Отсутствует в FGD!
- Minimum / Maximum Effect Details Level (mincpulevel / maxcpulevel) <integer choices> (Во всех играх начиная с
)
- Don't render for players with Effect Details levels that exceed the minimum or maximum.
Choices - 0: Default ("Low" for
mincpulevel
, "High" formaxcpulevel
) - 1: Low
- 2: Medium
- 3: High
- 0: Default ("Low" for
- Minimum / Maximum Shader Details Level (mingpulevel / maxgpulevel) <integer choices> (Во всех играх начиная с
)
- Don't render for players with Shader Details levels that exceed the minimum or maximum.
Choices - 0: Default ("Low" for
mingpulevel
, "Very High" formaxgpulevel
) - 1: Low
- 2: Medium
- 3: High
- 4: Very High
См. также: cpu_level / gpu_level convars- 0: Default ("Low" for
Флаги
Start On : [1]
- Включает энтити по умолчанию.
No Dynamic Light : [2]
- Отключает динамический свет.
Инпуты
- LightOn
- Включает энтити.
- LightOff
- Выключает энтити.
- SetColor <color255 > (Во всех играх начиная с
) (также в
)
- Меняет цвет прожектора. Свет необходимо выключить и включить обратно, чтобы динамический источник света обновился.
Примечание:Функционально идентичен инпуту Color. Необходима задержка как минимум 0.01 перед включением прожектора, иначе он не включится.
- ForceUpdate (Во всех играх начиная с
) (также в
)
- Заставляет прожектор обновить свои положение и ориентацию.
Parentname:
- SetParent <string >
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <string >
- Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
- SetParentAttachmentMaintainOffset <string >
- As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
- ClearParent
- Removes this entity from the the movement hierarchy, leaving it free to move independently.
RenderFields:
- Alpha <integer 0–255>
- Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its
rendermode
set to a number other than0
.
- Color <color255 >
- Sets an RGB color for the entity.
Аутпуты
- OnLightOn
- Срабатывает при включении света.
- OnLightOff
- Срабатывает при отключении света.