env_microphone
< Zh
Jump to navigation
Jump to search

env_microphone
是一个点实体 ,可在所有的 起源 游戏中使用。 就是麦克风。在"扬声器模式"下,它会检测声音并将其广播到Speaker target。 它无视Hears X标签并且不会触发SoundLevel的输入。 在"度量模式",它会在Measure target处度量声音级别并且产生声音级别0~1的输出。它只会听到与Hears X相匹配的声音。
度量模式用于检测声音强弱会来决定一些输出。
Flags
- 1: Hears combat sounds - 听到战斗声音
- 2: Hears world sounds - 听到世界中的声音
- 4: Hears player sounds - 听到玩家的声音
- 8: Hears bullet impacts - 听到子弹的声音
- 16: Swallows sounds routed through speakers - 意味着不会接收其他
env_microphone
实体传递的声音,包括自己本身。 - 32: Hears explosions - 听到爆炸的声音。
- 64: Ignores non-attenuated sounds - 忽略非衰减的声音
键值
- Speaker target (SpeakerName) ([todo internal name (i)]) <目标名 >
- 实体info_target的名字,播放在此麦克风实体接收的声音。如果指定了,那么麦克风实体会认为自己处于扬声器模式。它应该与env_speaker区分。
- Listen Filter (ListenFilter) ([todo internal name (i)]) <filter >
- 过滤实体名称,只有符合过滤的实体才能被接收。 而其他实体发出的声音不会被捕捉。
- Speaker DSP Preset (speaker_dsp_preset) ([todo internal name (i)]) <choices>
- 仅限扬声器模式。如果指定了,则通过扬声器播放的声音会受到选择的DSP 影响:
- 0: Use environment default 默认
- 50: (No effect) 无效果,下面同样
- 51: (No effect)
- 52: (No effect)
- 53: (No effect)
- 54: (No effect)无效果,上面同样
- 55: Loud speaker 大声的
- 56: Very small speaker 非常小
- 57: Echoing speaker 回声
- 58: Small speaker 小
- 59: Tiny speaker 小


EnableDisable/启动禁用:
- Start Disabled
(StartDisabled)
<布尔值 > - 保持休眠状态,直到被唤醒。(利用
Enable
输入)。

This article has been marked as a candidate for speedy deletion for the following reason:
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.
The redirect page got deleted, therefore this page should too.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourselfAdministrators / Moderators - Remember to check if anything links here and the page history before deleting.
输入
- SetSpeakerName <目标名 >
- 设置
info_target
实体名,当麦克风接受声音的时候会播放在此处。
EnableDisable/启动禁用:
- Enable
- Disable
- 启动/禁用此实体所具备的效果。同样会使实体消失。
Base:
- AddContext <字符串 >
- 添加到实体的 Response Contexts/响应上下文列表。格式是
<key>:<value>
。
语法:
- ClearContext
- 从此实体的列表中删除所有上下文。
- ClearParent
- 从移动层次结构中删除该实体,使其可以自由移动。
- FireUser1 to FireUser4
- 触发相应的
OnUser
输出;详见 User Inputs and Outputs。
- Kill
- 从这个世界中删除此实体。
- KillHierarchy
- 功能类似
Kill
,尽管此实体与其父实体都被删除了,但比Kill
快一点。
- RemoveContext
- 从实体列表删除一个上下文。名字应与现有上下文进行匹配。
- SetParent <字符串 >
- 跟随此实体移动,详见 实体层级(依赖关系)。
- SetParentAttachmentMaintainOffset <字符串 >
- 同上,但没有传送。在接收到输入时,实体保持其相对于附件的位置。
- DispatchResponse <字符串 > 不存在于FGD!
- 向实体发送一个上下文。 详见 Response
和 Concept
.
- DispatchEffect <字符串 > (被移除于
以来) 不存在于FGD!
- 在实体的原点坐标设置一个特定效果;参见 List of Client Effects
。自从
求生之路后由粒子系统取代。
- RunScriptCode <字符串 > (存在于自
以来)
- 在接收输入的实体范围内执行一串 VScript 源代码。通过控制台触发时可能需要字符串引用。
修复:使用文本编辑器手动删除带有字符串的参数。
- SetLocalOrigin <coordinates > (存在于自
以来) 不存在于FGD!
- 将此实体设置到地图中的某个位置。如果此实体是某实体父级,那么它的子级也会随着移动。
输出
- SoundLevel <浮点型 >
- 在度量模式,每当soundlevel改变都会触发。
- OnRoutedSound
- 每当声音通过一个指定的扬声器时都会触发。(如果有).
- OnHeardSound
- 每当扬声器听到一个自己关心的声音时都会触发。
Base/基础:
- OnUser1 to OnUser4
- 这些输出将分别响应于
FireUser1
到FireUser4
输入。 详见 User Inputs and Outputs。 - OnKilled (仅存在于
之中)
- 当实体被Kill输入时响应此输出。