color_correction
< Zh
Jump to navigation
Jump to search
注意:此篇翻译略有出处,若您有更好的内容请完善它!
color_correction
是一个点实体 ,可在所有的 起源 游戏中使用。它可以载入调色 lookup table (.raw)文件并控制其强度。色彩校正用于其实体周围的球体范围,可以设置衰减值。
在求生之路1 和求生之路2 中,此实体表现的像以前的source游戏的
color_correction
当实体 fog_volume固实体至少有一个被应用于fogvolume 材。标签(FLAGS)Master和Simulate client-side必须在主color_correction
实体上勾选。并且只能有一个主color_correction
实体。It is recommended that the other color_correction
entities be triggered with fog_volume
with an override of the master(推荐用覆盖主实体的fog_volume实体来触发其他color_correction实体。)。 The override is done by setting the fog_volume
entity property called ColorCorrection Name to a color_correction
targetname of your choice.(命名建议,啰里啰嗦)。
标志/Flags
- 1: Master (与L4D的
fog_volume
使用的默认color_correction) Template:L4D add - 2: Simulate client-side 同上Template:L4D add
键值
- Lookup Falloff Start Distance (minfalloff) <浮点型 >
- 实体效果发挥的最大作用的起始范围。如果比End Distance的范围大,那么效果会作用于整张地图。
- Lookup Falloff End Distance (maxfalloff) <浮点型 >
- 效果可应用的最大范围。范围外则效果不明显,随着玩家越接近 Start Distance范围则越明显。
- Maximum Weight (maxweight) <浮点型 >
- 对于调色的最大重量。[澄清]
- Lookup Fade In Duration (fadeInDuration) <浮点型 >
- 当实体设置为
Enable
时,淡入的时间。
- Lookup Fade out Duration (fadeOutDuration) <浮点型 >
- 同上,淡出时间。
- Lookup Table Filename (filename) <字符串 >
- .raw调色文件位置,详见color correction 。譬如HL2的位置:
materials/colorcorrection.raw
- Exclusive (exclusive) <布尔型 > (存在于自
以来)
- 特定的次
color_correction
实体启用时候会取消其他的调色实体。同一时间应该只能有一个color_correction
被设置为特定。
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.
输入
- SetFadeInDuration <浮点型 >
- 设置Lookup Fade In Duration淡入时间.
- SetFadeOutDuration <浮点型 >
- 设置 Lookup Fade out Duration淡出时间.
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!
- 将此实体设置到地图中的某个位置。如果此实体是某实体父级,那么它的子级也会随着移动。
输出
实体目标名:
- OnUser1 to OnUser4
- 这些输出将分别响应于
FireUser1
到FireUser4
输入。 详见 User Inputs and Outputs。