env_dof_controller
< Zh
Jump to navigation
Jump to search

env_dof_controller是点实体,可在所有的
起源 游戏,自从
求生之路 以来中使用。这是一个作用于所有人的,控制景深设置的实体。
键值
- Enabled (enabled) <布尔型> (存在于自 AS 以来)
- 是否可以起作用。如果不起作用,需要用以下输入
SetNearBlurRadius或者SetFarBlurRadius.
- Near blur depth (near_blur) <浮点型> (存在于自 AS 以来)
- 视野内模糊度达到峰值的接近距离。
- Near focus depth (near_focus) <浮点型> (存在于自 AS 以来)
- 视野内焦点达到峰值的接近距离。
- Near blur radius (near_radius) <浮点型> (存在于自 AS 以来)
- 多大半径模糊周围像素(单位像素)。
- Far blur depth (far_blur) <浮点型> (存在于自 AS 以来)
- 视野内模糊度打到峰值的最远距离。
- Far focus depth (far_focus) <浮点型> (存在于自 AS 以来)
- 视野内焦点达到峰值的最远距离。
- Far blur radius (far_radius) <浮点型> (存在于自 AS 以来)
- 多大半径模糊最远像素(单位像素)。
- Focus target (focus_target) <target_source> (存在于自 AS 以来)
- 当做焦点的实体。
- Focus target range (focus_range) <浮点型> (存在于自 AS 以来)
- 保持焦距的距离。
(以上键值仅限异形从群!)
Deprecated template {{KV BaseEntity:zh}} used; use {{KV Targetname}} instead.
Inputs
- SetNearBlurDepth <浮点型>
- Set the distance in front of the focus region at which the scene will be completely blurred using the near blur radius. Must be smaller than the near focus death.
- SetNearFocusDepth <浮点型>
- The area between the near focus and far focus distances is perfectly in focus. Must be smaller than the far focus depth.
- SetFarFocusDepth <浮点型>
- The area between the near focus and far focus distances is perfectly in focus. Must be smaller than the far blur depth.
- SetFarBlurDepth <浮点型>
- Set the distance beyond the focus region at which the scene will be completely blurred using the far blur radius. Must be larger than the far focus depth.
- SetNearBlurRadius <浮点型>
- Set the blur radius (in pixels) to use at the near blur distance. Set to 0 to disable near blur.
- SetFarBlurRadius <浮点型>
- Set the blur radius (in pixels) to use at the far blur distance. Set to 0 to disable far blur.
- SetFocusTarget <字符串> (存在于自
以来) - Set the focal target for the effect.
- SetFocusTargetRange <浮点型> (存在于自
以来) - Set the distance behind the focal point that will remain in focus.
Base:
- AddContext <字符串>
- 添加到实体的 Response Contexts/响应上下文列表。格式是
<key>:<value>。 - AddOutput <字符串>
- 在此实体上分配新的键值/输出。对于键值,有些依赖于额外的必要代码来运行,如果它只是通过这个输入改变就行不通。必须遵循严格的格式:
语法:
- ClearContext
- 从此实体的列表中删除所有上下文。
- ClearParent
- 从移动层次结构中删除该实体,使其可以自由移动。
- FireUser1 to FireUser4
- 触发相应的
OnUser输出;详见 User Inputs and Outputs。 - Kill
- 从这个世界中删除此实体。
- KillHierarchy
- 功能类似
Kill,尽管此实体与其父实体都被删除了,但比Kill快一点。 - RemoveContext
- 从实体列表删除一个上下文。名字应与现有上下文进行匹配。
- SetParent <字符串>
- 跟随此实体移动,详见 实体层级(依赖关系)。
- SetParentAttachment <字符串>
- 更改此实体到其父级上的特定附属点。实体将传送,以至于其骨骼方位与附属匹配。在使用此输入前必须设置好实体的父实体。
- SetParentAttachmentMaintainOffset <字符串>
- 同上,但没有传送。在接收到输入时,实体保持其相对于附件的位置。
- Use 不存在于FGD!
- 与调用 +use 的玩家相同[玩家按 +use(使用,默认E按钮)];大多数情况下没有影响。
- DispatchResponse <字符串> 不存在于FGD!
- 向实体发送一个上下文。 详见 Response 和 Concept.
- DispatchEffect <字符串> (被移除于
以来) 不存在于FGD! - 在实体的原点坐标设置一个特定效果;参见 List of Client Effects。自从
求生之路后由粒子系统取代。
- RunScriptFile <脚本> (存在于自
以来) - 从硬盘执行一个 VScript 脚本文件,不带文件后缀名。会合并接收实体的脚本域。
- RunScriptCode <字符串> (存在于自
以来) - 在接收输入的实体范围内执行一串 VScript 源代码。通过控制台触发时可能需要字符串引用。
修复:使用文本编辑器手动删除带有字符串的参数。- CallScriptFunction <字符串> (存在于自
以来) 不存在于FGD! - 在接受实体脚本域上执行一段 VScript 函数。
- SetLocalOrigin <coordinates> (存在于自
以来) 不存在于FGD! - 将此实体设置到地图中的某个位置。如果此实体是某实体父级,那么它的子级也会随着移动。
- SetLocalAngles <angles> (存在于自
以来) 不存在于FGD! - 设置该实体的角度。
Outputs
Base/基础:
- OnUser1 to OnUser4
- 这些输出将分别响应于
FireUser1到FireUser4输入。 详见 User Inputs and Outputs。 - OnKilled (仅存在于

之中) - 当实体被Kill输入时响应此输出。