Template:KV BaseAnimating:zh-cn

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

本模板由大康更新于2022年4月17日。


继承CBaseAnimatingC++ (Class)的所有相关键值的信息持有者。该模板具有非常具体的语法,你必须遵循该语法才能正确应用,因为这些年来新游戏增加了新功能。有关命名参数的更多信息,请参见 Help:Templates

一些CBaseAnimating键值不是本类独有的,而是仅与CBaseAnimating类相关。请参阅 Uncovered Keyvalues 页面了解更多信息。

Note.pngNote:编辑此模板后,请确保你还编辑了目标实体的页面。出于技术原因,每个游戏的键值可能会重复。参见 FGD Template Prototype

用法

这些必须以特定的语法使用!——所有参数的值都必须为 1,例如:portal2=1一次只能使用一个游戏参数。

{{KV BaseAnimating:zh-cn|portal2=1}}

参数

如果你将参数字段留空(不使用参数),模板将自动回退以显示当前默认游戏的键值。

此模板的所有参数:

  • base- 不显示特定于游戏的信息,仅显示基本引擎功能。 (The Source 2013 / Source 2013 Multiplayer iteration engine)
  • l4d - 设置特定于 Left 4 Dead 的模板键值。('SystemLevelChoice')
  • l4d2 - 设置特定于 Left 4 Dead 2 的模板 KV。('SystemLevelChoice' + Glow backface)
  • as - 显示自 Alien Swarm 以来存在的键。('SystemLevelChoice' + MoveType 和 CollisionGroup)
  • portal2 - [当前默认值] 显示自 Portal 2 以来存在的键。('SystemLevelChoice' + MoveType and CollisionGroup + SuppressAnimSounds 以及各种投影纹理设置)

有关示例,请参阅示例部分。

示例

显示特定于游戏的信息 Left 4 Dead

仅显示与 Left 4 Dead 相关的信息。

{{KV BaseAnimating:zh-cn|l4d=1}}
将会:
Render Mode (rendermode) <choices>
在此实体上设置非标准渲染模式。

效果——环境

Disable Shadows (disableshadows) <boolean> | 布尔值
防止实体创建廉价的渲染到纹理阴影。不影响阴影贴图
Disable Receiving Shadows (disablereceiveshadows) <boolean> | 布尔值
防止实体接收自身的阴影。
Shadow Cast Distance (shadowcastdist) <integer> | 整数
设置实体投射动态阴影的距离。 0 表示与 shadow_control 实体的默认距离。
Lighting Origin (LightingOrigin) <targetname> | 目标名
选择一个实体(不是info_lighting实体!)从这个点采样照明而不是实体的原点
Lighting Origin Offset (LightingOriginHack) <targetname> | 目标名 (存在于 Left 4 Dead series 中) 不存在于FGD!
info_lighting_relative从这个点采样照明而不是实体的原点。

其他

SystemLevelChoice:

Minimum CPU Level (mincpulevel) <choices> (in all games since Left 4 Dead)
CPU级别低于此级别的将不在游戏内呈现此对象,级别由视频设置内的效果细节决定。
Maximum CPU Level (maxcpulevel) <choices> (in all games since Left 4 Dead)

Note.pngNote:键值的名称是因为cpu_level命令;效果详细信息使用的命令。
Minimum GPU Level (mingpulevel) <choices> (in all games since Left 4 Dead)
GPU级别低于此级别的将不在游戏内呈现此对象,级别由视频设置内的Shader细节决定。
Maximum GPU Level (maxgpulevel) <choices> (in all games since Left 4 Dead)

Note.pngNote:键值的名字是因为gpu_level命令; Shader Details 使用的命令。


显示特定于基础引擎的信息

仅显示与基础引擎相关的信息。(Source 2013 / Source 2013 Multiplayer)

{{KV BaseAnimating:zh-cn|base=1}}
将会:
Render Mode (rendermode) <choices>
在此实体上设置非标准渲染模式。

效果——环境

Disable Shadows (disableshadows) <boolean> | 布尔值
防止实体创建廉价的渲染到纹理阴影。不影响阴影贴图
Disable Receiving Shadows (disablereceiveshadows) <boolean> | 布尔值
防止实体接收自身的阴影。
Shadow Cast Distance (shadowcastdist) <integer> | 整数
设置实体投射动态阴影的距离。 0 表示与 shadow_control 实体的默认距离。
Lighting Origin (LightingOrigin) <targetname> | 目标名
选择一个实体(不是info_lighting实体!)从这个点采样照明而不是实体的原点
Lighting Origin Offset (LightingOriginHack) <targetname> | 目标名 (存在于 Left 4 Dead series 中) 不存在于FGD!
info_lighting_relative从这个点采样照明而不是实体的原点。



使用模板默认值

不使用任何参数,模板回退到默认值,即最新的起源游戏。

{{KV BaseAnimating:zh-cn}}
将会:
Render Mode (rendermode) <choices>
在此实体上设置非标准渲染模式。

效果——环境

Disable Shadows (disableshadows) <boolean> | 布尔值
防止实体创建廉价的渲染到纹理阴影。不影响阴影贴图
Disable Receiving Shadows (disablereceiveshadows) <boolean> | 布尔值
防止实体接收自身的阴影。
Shadow Cast Distance (shadowcastdist) <integer> | 整数
设置实体投射动态阴影的距离。 0 表示与 shadow_control 实体的默认距离。
Lighting Origin (LightingOrigin) <targetname> | 目标名
选择一个实体(不是info_lighting实体!)从这个点采样照明而不是实体的原点
Lighting Origin Offset (LightingOriginHack) <targetname> | 目标名 (存在于 Left 4 Dead series 中) 不存在于FGD!
info_lighting_relative从这个点采样照明而不是实体的原点。
Disable Flashlight (disableflashlight) <boolean> | 布尔值 (in all games since Portal 2)
用于禁用该实体上的投影纹理的光照和阴影。
Disable ShadowDepth (disableshadowdepth) <boolean> | 布尔值 (in all games since Portal 2)
使该实体不会从env_projectedtexture实体投射阴影。
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

其他

Move Type (MoveType) <choices> (存在于自 Alien Swarm 以来) 不存在于FGD!
为这个实体设置一个移动类型,这会改变它的移动行为。

Collision Group (CollisionGroup) <choices> (存在于自 Alien Swarm 以来) 不存在于FGD!
为这个实体设置一个碰撞组,这会改变它的碰撞行为。

No Animation Sounds (SuppressAnimSounds) <boolean> | 布尔值 (in all games since Portal 2) 不存在于FGD!
静音与动画相关的声音。

SystemLevelChoice:

Minimum CPU Level (mincpulevel) <choices> (in all games since Left 4 Dead)
CPU级别低于此级别的将不在游戏内呈现此对象,级别由视频设置内的效果细节决定。
Maximum CPU Level (maxcpulevel) <choices> (in all games since Left 4 Dead)

Note.pngNote:键值的名称是因为cpu_level命令;效果详细信息使用的命令。
Minimum GPU Level (mingpulevel) <choices> (in all games since Left 4 Dead)
GPU级别低于此级别的将不在游戏内呈现此对象,级别由视频设置内的Shader细节决定。
Maximum GPU Level (maxgpulevel) <choices> (in all games since Left 4 Dead)

Note.pngNote:键值的名字是因为gpu_level命令; Shader Details 使用的命令。



另请参阅

  • {{KV BaseEntity:zh-cn}}
  • {{I BaseEntity:zh-cn}}
  • {{I BaseAnimating:zh-cn}}