Moderator elections are being held. See Valve Developer Community:Moderator elections for more details.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
This article's documentation is for anything that uses the Source engine. Click here for more information.

fog_volume

From Valve Developer Community
Jump to: navigation, search
English (en)中文 (zh)
... Icon-Important.png

本简体中文界面由大康翻译。

《反恐精英:全球攻势》中的雾。

fog_volume is a brush entity available in all Source Source games since Left 4 Dead Left 4 Dead.它控制其体积内的雾和其他视觉电影元素。为了使(主)color_correction 在 Left 4 Dead 和 Left 4 Dead 2 中生效,必须至少有一个 fog_volume

Tip.pngTip:Left 4 Dead 2《求生之路2》中有一个雾面板,允许在游戏中操作雾参数。它是通过控制台命令 fogui 加载的。此命令存在于 Portal 2传送门2中,但除非从另一个游戏复制 resource/foguipanel.res,否则将无法使用。
Note.pngNote:Alien Swarm Alien Swarm 不使用玩家的原点来决定他所在的雾体积,而是使用相机位置。因此,您必须确保您的雾量(高度)高于海军陆战队相机可以到达的最高点,即:从相机到海军陆战队的高度距离。
Note.pngNote:在使用 Source 2007 和 Source 2013 的 mods 中,您可以使用 trigger_multiple 在多人游戏中创建客户端雾更改功能。至少有 2 个 env_fog_controller 具有不同的雾设置,并且一个检查了 Master 标志。使用 OnStartTouch > !activator > SetFogController > [env_fog_controller 实体的名称]。输入将显示为红色,但它仍然有效。使用 OnEndTouch() 将雾改回来。
Note.pngNote:Counter-Strike: Global Offensive(也许还有其他游戏)中,将多个画笔绑定到 fog_volume 会为画笔组的边界框产生雾效果,即如果您在 L 形走廊中有 2 个用于 fog_volume 的方块,站在走廊内角的房间也会触发雾。

键值

Fog Name (FogName) <targetname>
与此体积关联的雾实体的名称。
Postprocess Name (PostProcessName) <targetname>
与此体积关联的后处理实体的名称。
ColorCorrection Name (ColorCorrectionName) <targetname>
与此体积关联的 color_correction 实体的名称。

Targetname:
Name (targetname) <string简体中文> | 字符串
其他实体引用该实体的目标名称

EnableDisable/启动禁用:

Start Disabled (StartDisabled) <boolean> | 布尔值
保持休眠状态,直到被唤醒。(利用Enable输入)。

输入

EnableDisable/启动禁用:

Enable
Disable
启动/禁用此实体所具备的效果。同样会使实体消失。

输出

实体目标名:

OnUser1OnUser4
这些输出将分别响应于FireUser1FireUser4 输入。 详见 User Inputs and Outputs
OnKilled (only in Left 4 Dead series)
当实体被删除时触发此输出。

另请参阅

外部链接