info_placement_helper

From Valve Developer Community
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)
墙上的一个info_placement_helper。如果键值Use helper's angles设置为No,那么其方向无关紧要。否则,红色箭头必须完全垂直于表面指向外部,蓝色箭头(精确来说是angle(en)roll值)决定传送门的顶部和底部。如果按此方式放置,它会按预期工作。
注意编辑器中默认箭头prop的蓝色箭头有两个不同的尖端,其中一个仅从一侧可见。

info_placement_helper是一个点实体,可在传送门2 传送门2中使用。

它将传送门吸附到特定位置:如果玩家在此实体半径范围内发射传送门,传送门将自动重新定位到此实体的原点。此后,传送门仍可能被其他已开启的传送门推开。地图放置的prop_portal实体不受此实体影响。

默认情况下,每个放置助手最多每3.5秒执行一次此操作。这样,玩家可以自由接受或拒绝放置助手。但是,如果键值Force Placement设置为Yes,则没有此类"冷却时间",传送门将始终吸附,玩家没有选择余地。

Note.png注意:玩家可能会对为什么无法在特定表面上自由放置传送门感到困惑或沮丧,特别是如果他们甚至不知道放置助手的存在。

此实体不需要以完美距离放置在表面附近,但0-8单位是良好实践。请注意,一个放置助手不应干扰另一个不同的放置助手。

如果键值Use helper's angles设置为No,则此实体的方向无关紧要。否则,请参考右侧图像。此实体允许放置通常不可能实现的奇特旋转传送门。

Tip.png提示:TeamSpen210的Hammer插件包含此实体的自定义模型,准确显示传送门的大小和方向。
Tip.png提示:由于此实体在游戏中不可见,如果配合使用传送门指示器纹理或贴花会很有帮助。

键值

Radius (radius) <浮点型(en)>
传送门帮助器半径范围。
Proxy Entity Name (proxy_name) <目标名(en)>
要用于实际放置位置的实体名称。
Attach Entity Name (attach_target_name) <字符串(en)>
要强制附加到的实体名称, 用于组合对象。
Use helper's angles (snap_to_helper_angles) <布尔值(en)>
放置的传送门将使用传送门帮助器的角度。
Force Placement (force_placement) <布尔值(en)>
使用放置助手后是否进入"冷却"期,防止玩家把传送门打偏。
Note.png注意:尽管此键值在默认FGD(en)中的描述如此,但它不允许绕过传送门放置规则。尽管存在常见误解,启用它也不是助手工作所必需的。
Name(en) (targetname) <target_source>[ Edit ]
这个名称是其他实体通过 输入/输出(en) 或其他 关键值(en)(如 parentnametarget) 来引用该实体时使用的标识符。
该名称也会显示在 Hammer 编辑器的 2D 视图和 实体报告(en) 中。
参见: 所有实体均可使用的 通用键值、输入与输出(en)
Parentname:
Parent (parentname) <目标名(en)>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Pitch Yaw Roll (Y Z X) (angles) <QAngle(en)>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
Start Disabled (StartDisabled) <布尔值(en)>
保持休眠状态,直到被唤醒。(利用Enable输入)。

输入

Parentname:
SetParent <字符串(en)>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <字符串(en)>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <字符串(en)>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.

EnableDisable:

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

输出

OnObjectPlaced
已使用我们作为指南成功放置对象。
OnObjectPlacedSize <整数(en)>
当对象成功放置时,发送比例级别作为输出值