Ru/Color correction (entity)

From Valve Developer Community
< Ru
Revision as of 15:41, 2 September 2014 by Japanboy (talk | contribs) (Created page with "{{base point:ru|color_correction}} ==Описание== left It loads a color correction lookup table (.raw) and controls its strength. Correct...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Base point:ru

Описание

Color correction.png

It loads a color correction lookup table (.raw) and controls its strength. Correction is applied in a sphere surrounding the entity, with a configurable amount of falloff. By default the effect fades in gradually and only reaches peak intensity at the entity's exact location.

Серия игр Left 4 DeadСерия игр Left 4 Dead In Left 4 Dead and Left 4 Dead 2, this entity will behave like color_correction in previous Source-based games if there is at least one fog_volume brush entity textured with the fogvolume material. The flags "Master" and "Simulate client-side" must be checked in the main color_correction entity. There can only be one master color_correction. It is recommended that the other color_correction entities be triggered with fog_volume with an override of the master. The override is done by setting the fog_volume entity property called ColorCorrection Name to a color_correction targetname of your choice.

Icon-Bug.pngБаг:In Team Fortress 2, color_correction causes control point HUD icons to display improperly. (example).  [нужно проверить в ?]

Keyvalues

Lookup Falloff Start Distance <float>
Lookup Falloff End Distance <float>
Distance from the entity at which the effect should begin and end fading out.
Maximum Weight <normal>
The intensity of the effect before falloff.
Lookup Table Filename <path\file>
The path and filename of the lookup table to load. Starts in the game root and should include file extension.
Lookup Fade In Duration <float>
Lookup Fade out Duration <float>
How fast the effect should fade in/out when the entity is enabled/disabled.
Name(en) (targetname) <объект источник(en)>
Имя объекта, по которому другие объекты могут ссылаться на этот объект, через Входы/Выходы(en) или другие ключ-параметры(en) (например parentname или target).
Также отображаются на 2D-видах в Hammer и Отчёте об объектах (Entity Report)(en).
См. также:  Основные ключ-параметры, входы и выходы доступные для всех объектов

Start Disabled (StartDisabled) <булева переменная(en)>
Оставаться отключенным до момента активации с помощью входа Enable.

Inputs

filename  Отсутствует в FGD!
change the Lookup Table filename
Targetname:
Kill
Удаляет этот объект из мира.
KillHierarchy
Удаляет объект и его потомков из мира.
AddOutput <строка(en)>
Определяет ключ-параметр/выход этого объекта. Потенциально представляет большую опасность, используйте с осторожностью.
Формат: <ключ-параметр> <значение>
Формат: <имя выхода> <целевой объект>:<имя входа>:<параметр>:<пауза>:<макс. количество срабатываний, -1 - бесконечно>
FireUser1 to FireUser4
Срабатывание выходов OnUser; см. Пользовательские вводы и выводы.
Use  Отсутствует в FGD!
То же, что и при вызове +use игроком; может не всё. Можно вызвать, создав вывод, которому не указан ввод.
Этот ввод не указан в FGD-файле Valve.
RunScriptFile <скрипт(en)> (Во всех играх начиная с Left 4 Dead 2)
Выполнить файл игрового скрипта с диска.
RunScriptCode <строка(en)> (Во всех играх начиная с Left 4 Dead 2)
Выполнить строку исходного кода скрипта.
Warning.pngПредупреждение:Никогда не передавайте строковые параметры функции скрипта с помощью этого входа. Это повредит структуру VMF из-за вложения кавычек, которые потребуется удалять вручную в текстовом редакторе.
EnableDisable:
Enable - разрешить
Disable - запретить
Включает/отключает работоспособность объекта. Также может пропасть из поля зрения.

Outputs

Targetname:
OnUser1 to OnUser4
Вызывается в ответ на входы FireUser; (см. Пользовательские вводы и выводы).
OnKilled  (Во всех играх начиная с Left 4 Dead)
Вызывается после уничтожения энтити и удаления её из игры.
EnableDisable:
Enable - разрешить
Disable - запретить
Включает/отключает работоспособность объекта. Также может пропасть из поля зрения.

Flags

  • 1 : Master (Default color correction when used with L4D fog_volume)
  • 2 : Simulate client-side (Must be set when used with L4D fog_volume) Template:L4D add

See also