Template:KV BaseAnimating:zh-cn/doc
This is a documentation subpage for Template:KV BaseAnimating:zh-cn.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
Don't forget to purge the contents of the base page upon creating or editing this subpage.
本模板由大康更新于2022年4月17日。
继承CBaseAnimating
C++ 类(Class)的所有相关键值的信息持有者。该模板具有非常具体的语法,你必须遵循该语法才能正确应用,因为这些年来新游戏增加了新功能。有关命名参数的更多信息,请参见 Help:Templates。
一些CBaseAnimating
键值不是本类独有的,而是仅与CBaseAnimating
类相关。请参阅 Uncovered Keyvalues 页面了解更多信息。
Note:编辑此模板后,请确保你还编辑了目标实体的页面。出于技术原因,每个游戏的键值可能会重复。参见 FGD Template Prototype。
用法
这些必须以特定的语法使用!——所有参数的值都必须为 1,例如:portal2=1
。一次只能使用一个游戏参数。
{{KV BaseAnimating:zh-cn|portal2=1}}
参数
如果你将参数字段留空(不使用参数),模板将自动回退以显示当前默认游戏的键值。
此模板的所有参数:
base
- 不显示特定于游戏的信息,仅显示基本引擎功能。 (The / iteration engine)l4d
- 设置特定于 的模板键值。('SystemLevelChoice')l4d2
- 设置特定于 的模板 KV。('SystemLevelChoice' + Glow backface)as
- 显示自 以来存在的键。('SystemLevelChoice' + MoveType 和 CollisionGroup)portal2
- [当前默认值] 显示自 以来存在的键。('SystemLevelChoice' + MoveType and CollisionGroup + SuppressAnimSounds 以及各种投影纹理设置)
有关示例,请参阅示例部分。
示例
显示特定于游戏的信息
{{KV BaseAnimating:zh-cn|l4d=1}}
将会:
- Render Mode
(rendermode)
<choices>
- 在此实体上设置非标准渲染模式。
效果——环境
- Disable Receiving Shadows
(disablereceiveshadows)
<boolean>
| 布尔值 - 防止实体接收自身的阴影。
- Shadow Cast Distance
(shadowcastdist)
<integer>
| 整数 - 设置实体投射动态阴影的距离。 0 表示与 shadow_control 实体的默认距离。
- Lighting Origin
(LightingOrigin)
<targetname>
| 目标名 - 选择一个实体(不是
info_lighting
实体!)从这个点采样照明而不是实体的原点。
- Lighting Origin Offset
(LightingOriginHack)
<targetname>
| 目标名 (不存在于 中) 不存在于FGD! info_lighting_relative
从这个点采样照明而不是实体的原点。
其他
SystemLevelChoice:
- Minimum CPU Level (mincpulevel)
<choices>
(in all games since ) - CPU级别低于此级别的将不在游戏内呈现此对象,级别由视频设置内的效果细节决定。
Note:键值的名称是因为
cpu_level
命令;效果详细信息使用的命令。- Minimum GPU Level (mingpulevel)
<choices>
(in all games since ) - GPU级别低于此级别的将不在游戏内呈现此对象,级别由视频设置内的Shader细节决定。
Note:键值的名字是因为
gpu_level
命令; Shader Details 使用的命令。
显示特定于基础引擎的信息
{{KV BaseAnimating:zh-cn|base=1}}
将会:
- Render Mode
(rendermode)
<choices>
- 在此实体上设置非标准渲染模式。
效果——环境
- Disable Receiving Shadows
(disablereceiveshadows)
<boolean>
| 布尔值 - 防止实体接收自身的阴影。
- Shadow Cast Distance
(shadowcastdist)
<integer>
| 整数 - 设置实体投射动态阴影的距离。 0 表示与 shadow_control 实体的默认距离。
- Lighting Origin
(LightingOrigin)
<targetname>
| 目标名 - 选择一个实体(不是
info_lighting
实体!)从这个点采样照明而不是实体的原点。
- Lighting Origin Offset
(LightingOriginHack)
<targetname>
| 目标名 (不存在于 中) 不存在于FGD! info_lighting_relative
从这个点采样照明而不是实体的原点。
使用模板默认值
不使用任何参数,模板回退到默认值,即最新的起源游戏。
{{KV BaseAnimating:zh-cn}}
将会:
- Render Mode
(rendermode)
<choices>
- 在此实体上设置非标准渲染模式。
效果——环境
- Disable Receiving Shadows
(disablereceiveshadows)
<boolean>
| 布尔值 - 防止实体接收自身的阴影。
- Shadow Cast Distance
(shadowcastdist)
<integer>
| 整数 - 设置实体投射动态阴影的距离。 0 表示与 shadow_control 实体的默认距离。
- Lighting Origin
(LightingOrigin)
<targetname>
| 目标名 - 选择一个实体(不是
info_lighting
实体!)从这个点采样照明而不是实体的原点。
- Lighting Origin Offset
(LightingOriginHack)
<targetname>
| 目标名 (不存在于 中) 不存在于FGD! info_lighting_relative
从这个点采样照明而不是实体的原点。
- Disable ShadowDepth
(disableshadowdepth)
<boolean>
| 布尔值 (in all games since ) - 使该实体不会从
env_projectedtexture
实体投射阴影。
- Projected Texture Cache
(shadowdepthnocache)
<choices>
(in all games since ) - 用于提示投影纹理系统是否足以缓存该实体的阴影体积或强制每帧渲染它。
- 0: Default
- 1: No cache - render every frame
- 2: Cache it - render only once
其他
- Move Type
(MoveType)
<choices>
(存在于自 以来) 不存在于FGD! - 为这个实体设置一个移动类型,这会改变它的移动行为。
- Collision Group
(CollisionGroup)
<choices>
(存在于自 以来) 不存在于FGD! - 为这个实体设置一个碰撞组,这会改变它的碰撞行为。
SystemLevelChoice:
- Minimum CPU Level (mincpulevel)
<choices>
(in all games since ) - CPU级别低于此级别的将不在游戏内呈现此对象,级别由视频设置内的效果细节决定。
Note:键值的名称是因为
cpu_level
命令;效果详细信息使用的命令。- Minimum GPU Level (mingpulevel)
<choices>
(in all games since ) - GPU级别低于此级别的将不在游戏内呈现此对象,级别由视频设置内的Shader细节决定。
Note:键值的名字是因为
gpu_level
命令; Shader Details 使用的命令。
另请参阅
{{KV BaseEntity:zh-cn}}
{{I BaseEntity:zh-cn}}
{{I BaseAnimating:zh-cn}}