Ru/Env microphone: Difference between revisions
< Ru
Jump to navigation
Jump to search
No edit summary |
|||
Line 6: | Line 6: | ||
{{base point|env_microphone}} | {{base point|env_microphone}} | ||
== | ==Описание Энтити== | ||
[[File:env_microphone.png|left]] | [[File:env_microphone.png|left]] | ||
It acts as a microphone. | It acts as a microphone. |
Revision as of 08:09, 18 October 2014
Template:Otherlang2 Template:Totranslate:ru
Описание Энтити
It acts as a microphone. It works in one of two modes:
- Speaker mode
- If it has a "Speaker target" set, it picks up all sounds within the specified sound range and rebroadcasts them through that entity. It ignores the "Hears X" spawnflags and does not fire the SoundLevel output.
- Measuring mode
- If no speaker entity is set, it measures the sound level at "Measure target" and outputs the sound level as a value between 0 and 1. It only hears sounds that match the "Hears X" spawnflags.
Keyvalues
- Measure target ([todo internal name (i)]) <целевой объект >
- If the speaker is in Measuring mode, this is the name of the entity where the sound level is to be measured.
Подтвердить:Optional?
- Speaker target ([todo internal name (i)]) <целевой объект >
- The name of an info_target at which to play any sounds heard by this microphone. If specified, the microphone will consider itself in Speaker mode.
Предупреждение:Cannot be an env_speaker!
- Listen Filter ([todo internal name (i)]) <фильтр >
- The name of an filter entity which specifies the only entities the microphone can hear. Sounds emitted by other entities will not be heard.
- Speaker DSP Preset ([todo internal name (i)]) <варианты выбора>
- Only useful in Speaker mode. If specified, sounds played back through speakers will be affected by the selected DSP.
- Use environment default
- (No effect)
- (No effect)
- (No effect)
- (No effect)
- (No effect)
- Loud speaker
- Very small speaker
- Echoing speaker
- Small speaker
- Tiny speaker
- Sensitivity (0-10) ([todo internal name (i)]) <число с плавающей запятой >
- Sensitivity in measuring mode. 1 is normal, and anything between there and 10 is increasingly sensitive.
- Smoothing (0-1) ([todo internal name (i)]) <число с плавающей запятой >
- How much to smooth the output value of measuring mode.
- Maximum hearing range (0=infinite) ([todo internal name (i)]) <число с плавающей запятой >
- Sounds beyond this range won't be heard, irrelevant of attenuation.
Предупреждение:setting this to 0 or >1024 when the microphone is in Speaker mode can be very bad for performance!
- Start Disabled (StartDisabled) <булева переменная >
- Оставаться отключенным до момента активации с помощью входа
Enable
.
Parentname:
- Parent (parentname) <целевой объект >
- 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.
- Name (targetname) <объект источник >
- Имя объекта, по которому другие объекты могут ссылаться на этот объект, через Входы/Выходы или другие ключ-параметры (например
parentname
илиtarget
).
Также отображаются на 2D-видах в Hammer и Отчёте об объектах (Entity Report) .См. также: Основные ключ-параметры, входы и выходы доступные для всех объектов
Flags
- Hears combat sounds
- Hears world sounds
- Hears player sounds
- Hears bullet impacts
- Swallows sounds routed through speakers
- Hears explosions
- Ignores non-attenuated sounds
Inputs
- SetSpeakerName <целевой объект >
- Sets the info_target through which the microphone should emit what it hears.
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
Parentname:
- SetParent <строка >
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <строка >
- 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 <строка >
- 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.
Outputs
- SoundLevel <число с плавающей запятой >
- Fired in Measuring mode whenever the sound level changes.
- OnRoutedSound
- Fired whenever a sound is routed out through the specified speaker (if any).
- OnHeardSound
- Fired whenever this microphone hears any sound it cares about.