Ambient generic
< Zh
Jump to navigation
Jump to search
Template:Finishtranslation:zh-cn
这个实体同样适用于金源引擎中的 Zh/Ambient generic (GoldSource Engine)。
| ambient_generic | |
|---|---|
![]() | |
| 类型 | 点实体 |
| 引擎 | |
| 可用性 | 存在于所有的游戏中 |
实体描述
此实体用于播放声音,可以设置单次或循环。同样可以设置从某坐标点或者全局可听见。 其可以播放和控制声音脚本
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.
Use {{Flag|en}} instead.
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.
的声音,一段.wav实例或者scripted sentence(实体)。不像贴图或者模型那样,你必须重启 Hammer 才能看到变化,声音不需要,只需要点 browser 即可。
Template:Tip:zh-cn Template:Bug:zh-cn Template:Bug:zh-cn Template:Bug:zh-cn Template:Bug:zh-cn Template:Bug:zh-cn
键值
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.
Use {{Flag|en}} instead.
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.
的名字,或者需要播放的声音的路径。对于scripted_sentence,需要在此实体名字前加上一个“!”。 (例如: !COMBINE_THROW_GRENADE4) Template:Note:zh-cn
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.
Use {{Flag|en}} instead.
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.
(hammer 单位)对于客户端来说。Template:Bug:zh-cnTemplate:Bug:zh-cnTemplate:Note:zh-cn
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.
Use {{Flag|en}} instead.
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.
,并且能找到因素信息。那么目标能与声音口型同步。Template:Bug:zh-cnTemplate:Bug:zh-cn
- Volume
(health)<整数 0-10 > - 声音的音量大小。0是静音,10是正常,默认为10。Template:Tip:zh-cnTemplate:Bug:zh-cn
- Start Volume/初始音量
(volstart)<整数 0-10 >
- Fade in time in seconds/淡入时间/秒
(fadeinsecs)<整数 0-100 >
- Fade out time in seconds/淡出时间/秒
(fadeoutsecs)<整数 0-100 > - 淡入淡出时间以及开始时的音量大小,默认不淡入淡出。
- Pitch
(pitch)<整数 0-255 > - 音高,1为低,100为正常,255为高。Template:Bug:zh-cn
- Start pitch/初始音高
(pitchstart)<整数 0-255 >
- Spin up time/升速时间
(spinup)<整数 0-100 >
- Spin down time/降速时间
(spindown)<整数 0-100 > - 播放开始/结束消耗多少时间升速或降低音高,以及从多少音高开始。默认不执行。
- Dynamic Presets
(preset)<choices> - 可以应用各种 DSP 效果。
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.
Use {{Flag|en}} instead.
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.
种类的采用。
- Off (default)/关(默认)
- Square Wave (alternate between low and high)/矩形波(高低交替)
- Triangle Wave (crossfade between high and low)/三角波(高低之间淡入淡出)
- Random/随机
- LFO rate
(lforate)<整数 0-1000 > - LFO 效果重复频率。
- Incremental Spinup Count
(cspinup)<整数> - 似乎为了增加音高在指定时间内与
ToggleSound的输入。 但是…Template:Bug:zh-cn
Flags/标签
- [
1] : Play everywhere
无论接受者与音源多远,都以恒定的音量播放。Template:Todo:zh-cnTemplate:Bug:zh-cn
- Start Silent : [16]
- 此声音将不会播放。默认启用。Template:Bug:zh-cn
- Is NOT Looped : [32]
- 改变
ambient_generic如何处理停止和开始播放。它不会使一个在循环的声音停止循环,但是设置正确的值依然十分重要。如果不是,难以控制停止或者启用声音?Template:Bug:zh-cn
Inputs/输入
- Pitch <整数>
- 设置声音音高,范围从1~255,100是原始音高。Template:Bug:zh-cn
- PlaySound
- 开始播放声音。
- StopSound
- 停止播放循环声音。不会停止非循环声音! 这是故意的, 并且能够改变,修复文章:C++ 修复大法于您的 mod
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.
Use {{Flag|en}} instead.
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.
。然而非循环声音可以通过 Volume 输入,设置值为0来实现。
- ToggleSound
- 开关循环声音的按钮功能。表现类似于
PlaySound输入。
- Volume <浮点型>
- 以0~10的音量设置一个声音大小。10为最大声。Template:Bug:zh-cnTemplate:Bug:zh-cn
- FadeIn <整数>
- 指定秒数内将声音调整为最大声。范围0~100/秒。Template:Bug:zh-cn
- FadeOut <整数>
- 指定秒数内将声音调整为最小声。范围0~100/秒。Template:Bug:zh-cn
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! - 将此实体设置到地图中的某个位置。如果此实体是某实体父级,那么它的子级也会随着移动。
Outputs/输出
Base/基础:
- OnUser1 to OnUser4
- 这些输出将分别响应于
FireUser1到FireUser4输入。 详见 User Inputs and Outputs。 - OnKilled (仅存在于

之中) - 当实体被Kill输入时响应此输出。
参见
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.
Use {{Flag|en}} instead.
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.
(通用地图教程)
- env_soundscape- 用单个实体播放多个声音通过脚本
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.
Use {{Flag|en}} instead.
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.
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.
Use {{Flag|en}} instead.
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.
- which requires modifying the actual WAV file
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.
Use {{Flag|en}} instead.
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.
- 创建env_soundscape的替代方案。
