func_orator

From Valve Developer Community
Jump to: navigation, search
English (en)中文 (zh)
... Icon-Important.png

This page was translated by DaKang233. Anyone is welcome to add new content or fix errors.


类层级(Class Hierarchy)
CFlexExpresser
CFlexExpresserShim
CFlexCycler
CBaseFlex
CBaseAnimatingOverlay
CBaseAnimating
CBaseEntity

func_orator is a point entity available in the Left 4 Dead series Left 4 Dead series.

实体描述

一个非常简单的模型实体,具有动画和响应规则。

键值

Max Followup Dist (maxThenAnyDispatchDist) <float>
对这个 orator 的回应的“then ANY”后续行动将发送给距离这么多单位的角色。保留 0 表示即使是无限远的字符也可能响应。

Targetname:
Name (targetname) <string简体中文> | 字符串
其他实体引用该实体的目标名称

Parentname:
Parent (parentname) <targetname> | 目标名
指定一个实体作为父实体(跟随移动)。实体的父级实体,该实体可以与父实体保持移动偏移。名称后面可以添加一个附属点,以逗号隔开。

角度:
Pitch Yaw Roll (Y Z X) <angle>
这个实体在世界的方向。Pitch是围绕Y轴旋转,Yaw是围绕Z轴的旋转,Roll是围绕X轴的旋转。

RenderFXChoices:

Render FX (renderfx) <choices>
指定一种渲染绘制方式。


Warning icon.png
This article has been marked as a candidate for speedy deletion because it has been deprecated.
If you object to this decision, then please discuss why hereIf this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators - Remember to check if anything links here and the page history (last edit) before deleting.

RenderFields:

Tip.pngTip:有相应参考渲染请参见Render_Modes
Render Mode (rendermode) <choices>
在该实体上设置非标准渲染模式。



Render FX / Transparency (0 - 255) (renderamt) <integer> | 整数
透明的,0是不可见,255为完全可见。
Render Color (R G B) (rendercolor) <color255简体中文>
着色器。
Disable Receiving Shadows (disablereceiveshadows) <boolean> | 布尔值
是否防止实体接收自身阴影。

RenderFXChoices:

Render FX (renderfx) <choices>
指定一种渲染绘制方式。


Warning icon.png
This article has been marked as a candidate for speedy deletion because it has been deprecated.
If you object to this decision, then please discuss why hereIf this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators - Remember to check if anything links here and the page history (last edit) before deleting.

Studiomodel:
World Model (model) <string简体中文> | 字符串
此实体应显示的模型。 128 个字符限制。
Skin (skin) <integer> | 整数
一些模型有多个skins English。该值从索引中选择,从 0 开始。
Tip.pngTip:Hammer 的模型浏览器如果您使用它来查看不同的 skin,则会自动更新该值。

Shadow:
Disable Shadows (disableshadows) <boolean> | 布尔值
如果实体是prop_static,则阻止实体创建廉价的渲染到纹理阴影或光照贴图阴影。不影响阴影贴图
Disable ShadowDepth (disableshadowdepth) <boolean> | 布尔值 (in all games since Portal 2)
用于禁用此实体的阴影深度渲染(对于投影纹理)。
Projected Texture Cache (shadowdepthnocache) <choices> (in all games since Portal 2)
用于提示投影纹理系统是否足以缓存该实体的阴影体积或强制每帧渲染它。
  • 0 : Default | 默认
  • 1 : No cache - render every frame | 无缓存 - 渲染每一帧
  • 2 : Cache it - render only once | 缓存它 - 只渲染一次
Disable flashlight (disableflashlight) <boolean> | 布尔值 (in all games since Portal 2)
用于禁用该实体上的投影纹理光照和阴影。

Reflection:
Render in Fast Reflections (drawinfastreflection) <boolean> | 布尔值 (in all games since Portal 2)
如果启用,该实体将在快速水反射中渲染(即当水材质指定$reflectonlymarkedentities时)和世界中的 impostor pass。

选项

  • 1 : 非固体

输入

SpeakResponseConcept <string>
说出指定的响应概念。

Parentname:
SetParent<string简体中文> | 字符串
设置父级实体。详见Entity Hierarchy (parenting).
SetParentAttachment<string简体中文> | 字符串
修改此实体到父实体的特定附属点。实体会传送,以至于其骨骼方位与附属匹配。在使用此输入前必须设置好实体的父实体。
SetParentAttachmentMaintainOffset<string简体中文> | 字符串
同上,但不传送。实体接受到此输出后保留与父级的相对位置。
ClearParent
取消绑定父实体,以至于此实体可以自由行动。

RenderFields:

Alpha<integer> | 整数
设置实体的透明度0~255,0为不可见,255为完全可见。要求Render Mode (渲染模式) 设置为非0
Color<color255简体中文>
设置实体颜色(RGB)。

Studiomodel:
Skin<integer> | 整数
将模型的 skin 更改为指定的数字。
SetBodyGroup<integer> | 整数
设置模型的 body group
AlternativeSorting<boolean> | 布尔值
使用另一种方法来判断哪些对象在其他对象之前。如果通过透明物体看时此对象绘制不正确,请使用。
SetModelScale<string简体中文> | 字符串 (仅存在于 Source 2013 中)
设置模型比例。采用由空格分隔的两个值。首先是目标模型比例。第二个值是比例变化将传播的秒数。如果没有第二个值,模型将立即缩放。
Warning.pngWarning:负值或极高值可能导致崩溃!

Shadow:
DisableShadow
为该实体关闭动态阴影
EnableShadow
为该实体开启\动态阴影。
DisableReceivingFlashlight (存在于自 Portal 2 以来)
该对象不会接收来自投影纹理的光或阴影。
EnableReceivingFlashlight (存在于自 Portal 2 以来)
该对象可能会从投影纹理接收光或阴影。

Reflection:
DisableDrawInFastReflection (in all games since Portal 2)
在水材质中使用$reflectonlymarkedentities时,在反射中关闭此实体的渲染。
EnableDrawInFastReflection (in all games since Portal 2)
在水材质中使用$reflectonlymarkedentities时,在反射中打开此实体的渲染。

ToggleDraw:
DisableDraw  (in all games since Portal 2)
向该实体添加 EF_NODRAW 标志。某些实体自行管理此操作,因此请注意您可以覆盖该值。
EnableDraw  (in all games since Portal 2)
从此实体中删除 EF_NODRAW 标志。某些实体自行管理此操作,因此请注意您可以覆盖该值。

输出

实体目标名:

OnUser1OnUser4
这些输出将分别响应于FireUser1FireUser4 输入。 详见 User Inputs and Outputs
OnKilled (only in Left 4 Dead series)
当实体被删除时触发此输出。

Studiomodel:
OnIgnite
当这个对象着火时触发。