这篇条目有关 Source引擎。如需详情,点击这里。

fog_volume

From Valve Developer Community
< Zh
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
English (en)中文 (zh)Translate (Translate)

This updated page was translated by DaKang233 on December 12, 2024 (UTC+8). Anyone is welcome to add new content or fix errors.


《反恐精英:全球攻势》中的雾气
Fogvolume.jpg
类层级
CFogVolume
CServerOnlyEntity
CBaseEntity
fogvolume.cpp

fog_volume是一个固体实体(en),可在所有的 起源 起源 游戏,自从 求生之路 求生之路 以来中使用。 它也出现在黑山 黑山Mapbase Mapbase中。它控制其体积内的雾气和其他视觉电影元素。必须至少有一个fog_volume,以便(一个主控)color_correction能在求生之路系列求生之路系列 求生之路系列中生效。

Warning.png警告:This entity applies its effect based on its AABB instead of its brush model. [ Edit ]
Tip.png提示:
  • 求生之路2 求生之路2中有一个雾气面板,允许在游戏内调整雾气参数。可以通过控制台命令fogui加载此面板。此命令也存在于传送门2 传送门2中,但除非从其他游戏复制了resource/foguipanel.res,否则无法使用。
  • 在创建关卡时,为了区分雾气体积和触发器,请使用tools/toolsfog纹理。
Note.png注意:
  • 异形丛生 异形丛生不会使用玩家的原点来决定他们所在的雾气体积,而是使用相机的位置。因此,必须确保你的雾气体积比海军的相机能到达的最高点更高,即:从相机到海军的高度距离。
  • 使用起源2007 起源2007起源2013 起源2013的模组可以在多人游戏中通过使用trigger_multiple来创建客户端雾气变化功能。放置至少两个具有不同雾气设置的env_fog_controller,其中一个勾选了主控标志。使用OnStartTouch > !activator > SetFogController > [env_fog_controller实体的名称]。输入将显示为红色,但仍然有效。使用OnEndTouch()来恢复雾气。
  • 反恐精英:全球攻势(以及其他游戏中,可能也适用),将多个刷子绑定到fog_volume会在该组刷子的包围盒内产生雾气效果。例如,如果你在L型走廊中有两个雾气刷子,在走廊的内角房间内站立时也会触发雾气效果。

键值

参见:  Generic Keyvalues, Inputs and Outputs available to all entities
Name(en) (targetname) <target_source>
其他实体引用该实体的目标名称。
Fog Name (FogName) <target_destination>
与该体积关联的雾气实体的名称。
Postprocess Name (PostProcessName) <target_destination>
与该体积关联的postprocess_controller实体的名称。(存在于 Xengine Xengine 之中)
Note.png注意:Xengine Xengine没有postprocess_controller实体。
ColorCorrection Name (ColorCorrectionName) <target_destination>
与该体积关联的color_correction实体的名称。
Start Disabled (StartDisabled) <布尔值(en)>
保持休眠状态,直到被唤醒。(利用Enable输入)。

输入

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

参见

外部链接