牵引光束
< Zh(Redirected from Zh/Excursion funnels)
Jump to navigation
Jump to search
![]() |
---|
??? |
牵引光束
是一个模型实体,可在 传送门2中使用。
这是一个会发射projected_tractor_beam_entity
的模型。
偏移漏斗是《传送门2》中的解谜元素,工作原理类似牵引光束。
当物体(如炮塔 和立方体 )或玩家触碰到蓝色光束时,会不受重力影响缓慢远离发射器;若碰到橙色漏斗则会朝向发射器移动。玩家可以将物体或自身移出漏斗,但无法逆着流移动。
键值
- Name (目标名称) <target_source>[ Edit ]
- 这个名称是其他实体通过 输入/输出 或其他 关键值 (如
parentname
或target
) 来引用该实体时使用的标识符。
该名称也会显示在 Hammer 编辑器的 2D 视图和 实体报告 中。参见: 所有实体均可使用的 通用键值、输入与输出
- Linear Force (linearForce) <浮点型 >
- 作用于光束中物体的线性力。当值为负时,旋转颜色和方向会自动改变。V社官方制作的偏移漏斗线性力通常为250,反向漏斗应为-250。
错误:屏幕上所有漏斗会以相同速度渲染,若速度不同会产生闪烁效果。确保玩家不会同时看到多个不同速度的漏斗。(例如250和-250的同速反向漏斗是可行的)
- Disable Emitter Particles (noemitterparticles) <布尔值 >
- 禁用发射器上的漩涡粒子效果。
- Use 128 model (use128model) <Boolean >
- 使用适配128单位方框的牵引光束投射器模型(默认模型宽度为167单位)
- Primary Color (primarycolor) <color255 > (仅存在于
之中)
- 正向移动时的漏斗颜色。
- Secondary Color (secondarycolor) <color255 > (仅存在于
之中)
- 反向移动时的光束颜色。
BaseProjector:
- Start Enabled (StartEnabled) <布尔值 >
- If the projector should start enabled.
- Disable Placement Helper (DisableHelper) <布尔值 >
- Disable the automatically-created placement helper to prevent it from fighting with a custom one.
- Render in Fast Reflections (drawinfastreflection) <布尔值 > (存在于自
以来)
- If enabled, this entity will render in fast water reflections (i.e. when a water material specifies
$reflectonlymarkedentities
) and in the world impostor pass.
输入
- SetLinearForce <浮点型 >
- 设置作用于光束中物体的线性力。标准值:250,可使用负值反转流向。
- SetPrimaryColor <color255 > (仅存在于
之中)
- 更改光束的主颜色。
- SetSecondaryColor <color255 > (仅存在于
之中)
- 更改光束的次颜色。
BaseProjector:
- Enable
- Enables projection from this projector.
- Disable
- Disables projection from this projector.
创建
每个漏斗由prop_tractor_beam实体和前方的玩家碰撞体 组成。漏斗前方常放置light光源(亮度值建议为50 120 250 50)产生柔和的蓝色辉光。可逆光束通常会省略该光源以避免与橙色漏斗冲突,变通方案是放置蓝/橙两个光源,并通过反转漏斗的事件同步控制其启用/禁用。
栅格墙
创建允许牵引光束通过但阻挡玩家或prop_weighted_cube的墙体需要组合三种实体:
- func_brush实体,固体属性设为"永不固体"(玩家唯一可见部分)
- 玩家碰撞体 阻挡玩家移动
- func_clip_vphysics实体阻挡立方体移动
若存在油漆炸弹 ,需使用filter_activator_class允许油漆通过栅格。
牵引光束音效
V社官方地图中,玩家进入漏斗时会触发特殊音轨。该逻辑通过音效脚本 实现。自定义漏斗音乐教程参见Creating custom Portal 2 funnel music 。
外部链接
示例地图含VMF文件。