Env_microphone
Table of contents1 Entity Description2 Keyvalues3 Inputs4 OutputsEntity Description
Broadcasts sound from a location for either playback or monitoring.
Используется для создания например телевизоров. Когда актёр который находится в другой комнате, и его снимает камера, то env_microphone будет типа колонки записывая звук от актера и издавать его в том месте где вы его поставили. например:
делаем env_microphone и в комнату с актёром info_target
info_target`y даём имя miphone, а env_microphone ставим в таргетс miphone |
При этом не микрофон будет записывать звук, а info_target. А env_microphone издавать его.
(c) Source SDK.ru - Online-DataBase Entity.
Keyvalues
- The name that other entities refer to this entity by.
- hammerid [Episode Two Update]
- This id is used for debugging purposes in Hammer.
- The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
-
- If the speaker is in Measuring mode, this is the name of the entity where the sound level is to be measured.
- The name of a speaker entity through which to play any sounds heard by this microphone. If specified, the microphone will consider itself in Speaker mode. Cannot be an env_speaker!
- The name of an filter entity which specifies the only entities the microphone can hear. Sounds emitted by other entities will not be heard.
- Only useful in Speaker mode. If specified, when the microphone is enabled, it'll set the global dsp_speaker preset to this value. Sounds played back through speakers will then be affected by the selected DSP.
Literal Value | Description |
---|
0 | Use Default |
50 | 1 NO EFFECT |
51 | 2 (DUPLICATE OF 1) |
52 | 3 (DUPLICATE OF 1) |
53 | 4 (DUPLICATE OF 1) |
54 | 5 (DUPLICATE OF 1) |
55 | 6 SPEAKER, LOUDER |
56 | 7 SPEAKER VERY SMALL |
57 | 8 LOUDSPEAKER, ECHO |
58 | 9 SPEAKER SMALL |
59 | 10 SPEAKER TINY |
- (0-10) If the speaker is being used to monitor sound levels, this keyvalue dictates its sensitivity.
Literal Value | Description |
---|
0 | Deaf |
1 | Normal |
2-10 | Increasing Sensitivity |
- Sounds beyond this range won't be heard, irrelevant of attenuation.
Warning: setting this to zero (or a value > 1024) when the microphone is in Speaker mode can be very bad for performance!!
Inputs
- Removes this entity from the world.
- Removes this entity and all its children from the world.
- Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
- Format:
- Format:
- Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.
- Changes the entity's parent in the movement hierarchy.
- Change this entity to attach to a specific attachment point on its parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment.
- SetParentAttachmentMaintainOffset [Episode One Update]
- Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. The entity will maintain it's position relative to the parent at the time it is attached.
- Removes this entity from the the movement hierarchy, leaving it free to move independently.
- Enable this entity.
- Disable this entity.
- Set the microphone to output through a different speaker entity.
Outputs
- Fired in response to FireUser1-4 inputs. See User Inputs and Outputs. !activator = activator
- Fired in Measuring mode whenever the sound level changes.
- Fired whenever a sound is routed out through the specified speaker (if any).
- Fired whenever this microphone hears any sound it cares about.
К оглавлению справочника
© Valve Developer Community