Эта статья документации для всего, что использует платформу Source. Нажмите для получения дополнительной информации.

Ru/Env fade: Difference between revisions

From Valve Developer Community
< Ru
Jump to navigation Jump to search
m (→‎top: Unicodifying, replaced: {{language subpage → {{langsp)
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.)
Line 10: Line 10:
}}
}}


{{this is a|suf=:ru|e0|name=env_fade}}
{{this is a|point entity|suf=:ru|name=env_fade}}


Создаёт затемнение экрана. Screen fades are used to blend regular game imagery to or from a solid color.  Add '''duration''' and '''holdtime''' together for the total time this entity will be in effect.
Создаёт затемнение экрана. Screen fades are used to blend regular game imagery to or from a solid color.  Add '''duration''' and '''holdtime''' together for the total time this entity will be in effect.

Revision as of 18:57, 17 May 2024

English (en)Русский (ru)中文 (zh)Translate (Translate)
Info content.png
This page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.(en)
env_fade
Env fade.png
ТипТочечный объект мира
ПлатформаSource Source
ДоступностьВо всех играх
 

env_fade - это точечная энтити(en), доступно для всех игр на движке Source Source.

Создаёт затемнение экрана. Screen fades are used to blend regular game imagery to or from a solid color. Add duration and holdtime together for the total time this entity will be in effect. The modulate flag on env_fade uses a different kind of blending to achieve the fade. The normal fade does a straight weighted blend between the screen and the fading color (i.e. the fade color becomes a more/less opaque overlay over the scene). Modulate actually attenuates the screen colors in RGB with the fade color. So you could, for example, remove all of the red and blue from a scene with modulate and be left with a green overlay - well, sort of night vision anyway. The fade color for that would be pure green with modulate.



Keyvalues

Duration (seconds) ([todo internal name (i)]) <строка(en)>
The time that it will take to fade the screen in or out.
Hold Fade (seconds) ([todo internal name (i)]) <строка(en)>
The time to hold the faded in/out state.
Fade Alpha ([todo internal name (i)]) <целое число(en)>
Alpha of the fade, where 0 = fully transparent and 255 = fully opaque.
Fade Color (R G B) ([todo internal name (i)]) <цвет КЗС(en)>
Fade color.
Reverse Fade Duration (seconds) ([todo internal name (i)]) <число с плавающей запятой(en)> (Во всех играх начиная с Portal 2)
The duration of the reverse fade.
Name(en) (targetname) <объект источник(en)>
Имя объекта, по которому другие объекты могут ссылаться на этот объект, через Входы/Выходы(en) или другие ключ-параметры(en) (например parentname или target).
Также отображаются на 2D-видах в Hammer и Отчёте об объектах (Entity Report)(en).
См. также:  Основные ключ-параметры, входы и выходы доступные для всех объектов

Flags

  • 1 : Fade From
Essentially a "fade in," where the screen begins from an opaque color.
  • 2 : Modulate
Use attenuation blending, see Entity Description.
Only affect activator
  • 8 : Stay Out
The fade remains indefinitely until another fade deactivates it. This prevents the ondeath-fadeout used in Portal 2.

Inputs

Fade
Start the screen fade.
FadeReverse  (Во всех играх начиная с Portal 2)
Begin doing the reverse of the current fade.


Outputs

OnBeginFade
Fired when the fade has begun. (!activator is the activator)