Env_microphone

Env_microphone

Table of contents
1 Entity Description
2 Keyvalues
3 Inputs
4 Outputs

Entity 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.
  • parentname
The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
  • StartDisabled
  • target
If the speaker is in Measuring mode, this is the name of the entity where the sound level is to be measured.
  • SpeakerName
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!
  • ListenFilter
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
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
  • Sensitivity
(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
  • MaxRange
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

  • Kill
Removes this entity from the world.
  • KillHierarchy
Removes this entity and all its children from the world.
  • AddOutput
Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
Format:
Format: ::::
  • FireUser1-4
Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.
  • SetParent
Changes the entity's parent in the movement hierarchy.
  • SetParentAttachment
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.
  • ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.
  • Enable
Enable this entity.
  • Disable
Disable this entity.
  • SetSpeakerName
Set the microphone to output through a different speaker entity.

Outputs

  • OnUser1-4
Fired in response to FireUser1-4 inputs. See User Inputs and Outputs. !activator = activator
  • 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.

К оглавлению справочника

© Valve Developer Community
CMT (CS Mapping Tutorials) - © 2006-2011+. Created by VM
[ Script Execution time: 0.004 ]