prop_paint_bomb

From Valve Developer Community
< Zh
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)

prop_paint_bomb是一个点实体,可在传送门2 传送门2中使用。 这是一个会在撞击时爆炸的油漆炸弹。

Note.png注意:Gel needs to have Paint in Map set to True in worldspawn before applying on surfaces. Maps that do not use gel can save significant resources by avoiding gel code.
Icon-Bug.png错误:未设置model键值的油漆炸弹每次生成时都会在控制台显示警告信息。可以将其设置(en)为任意有效模型(如已加载的error.mdl),该模型实际上不会被渲染或使用。
Note.png注意:油漆炸弹使用prop_glass_futbol(en)模型(props/futbol.mdl)进行碰撞检测。使用油漆炸弹的独立模组必须包含此模型才能正常工作,但不需要材质文件。

Keyvalues

Paint Type ([todo internal name (i)]) <choices>
爆炸产生的油漆类型。
  • 0 : 弹跳油漆
  • 2 : 加速油漆
  • 3 : 传送门油漆
  • 4 : 消除油漆
Bomb Type ([todo internal name (i)]) <choices>
爆炸类型。
  • 0 : 干性炸弹
  • 1 : 湿性炸弹
Allow Portal Funneling ([todo internal name (i)]) <布尔值(en)>
是否允许此物体自动进入传送门漏斗。
Play Spawn Sound ([todo internal name (i)]) <布尔值(en)>
是否在生成时播放声音。
Allow SilentDissolve input ([todo internal name (i)]) <布尔值(en)>
是否允许SilentDissolve输入溶解此炸弹。
Name (目标名称) <target_source>[ Edit ]
这个名称是其他实体通过 输入/输出(en) 或其他 关键值(en)(如 parentnametarget) 来引用该实体时使用的标识符。
该名称也会显示在 Hammer 编辑器的 2D 视图和 实体报告(en) 中。
参见:  所有实体均可使用的 通用键值、输入与输出(en)

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.

Inputs

Dissolve
溶解油漆炸弹。
SilentDissolve
消除油漆炸弹并触发OnFizzled输出。
EnablePortalFunnel
启用传送门漏斗行为。
DisablePortalFunnel
禁用传送门漏斗行为。


Outputs

OnFizzled
当油漆炸弹被消除时触发。
OnExploded
当油漆炸弹爆炸时触发。