这篇条目有关 Source引擎。如需详情,点击这里。

cycler

From Valve Developer Community
< Zh
Jump to navigation Jump to search
English (en)Hrvatski (hr)Русский (ru)中文 (zh)Translate (Translate)

cycler是一个点实体(en),可在所有的 起源 起源 游戏中使用。


实体描述

用于显示模型,进行测试的实体。它会循环播放模型动画。

Icon-Bug.png错误:似乎在求生之路2中不生效  [todo tested in ?]

键值

Name (目标名称) <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.


Render FX(en) (renderfx) <byte choices(en)>
各种有点遗留的阿尔法效果。请参见渲染效果(en)

RenderFields:


渲染模式(en) (rendermode) <byte choices(en)>
在此实体上设置非标准渲染模式。
Render Modes
  • 0: 正常
  • 1: 颜色
  • 2: 纹理
  • 3: 发光
  • 4: 实体/阿尔法测试 Obsolete
  • 5: 叠加
  • 6: 已移除,无作用 Obsolete
  • 7: 叠加分数帧
  • 8: 阿尔法叠加
  • 9: 世界空间发光
  • 10: 不渲染
Render FX(en) (renderfx) <byte choices(en)>
各种有点遗留的阿尔法效果。请参见渲染效果(en)
Render Amount / Transparency (renderamt) <byte(en)>
Transparency amount, requires a Render Mode other than Normal. 0 is invisible, 255 is fully visible.
Render Color (R G B) (rendercolor) <color255(en)>
Color tint.


Model ([todo internal name (i)]) <模型文件路径(en)>
模型文件。


Sequence ([todo internal name (i)]) <整数(en)>
生成后默认播放的模型动画序列。


Skin ([todo internal name (i)]) <整数(en)>
一些模型有不同版本的材质外貌,叫做skin(皮肤)。0代表默认。

标签/Flags

  • 1 : Not Solid/可穿透,不具备碰撞。

输入

SetSequence <字符串(en)>
设置这个cycler实体的动作。


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.

RenderFields:

Alpha <整数 0-255 (en)>
Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its rendermode set to a number other than 0.
Color <color255(en)>
Sets an RGB color for the entity.

输出

参见