Difference between revisions of "Template:KV BaseAnimating:zh-cn"
1416006136 (talk | contribs) m |
Thunder4ik (talk | contribs) m (→top: clean up, replaced: {{warning:zh-cn → {{warning (2), {{Todo:zh-cn → {{todo) |
||
Line 14: | Line 14: | ||
{{KV:zh-cn|Body Group|intn=body or SetBodyGroup|int|设置模型的 [[$bodygroup]]。|nofgd=1}} | {{KV:zh-cn|Body Group|intn=body or SetBodyGroup|int|设置模型的 [[$bodygroup]]。|nofgd=1}} | ||
<!-- 我们应该为“模型索引”创建一个新页面吗? --> | <!-- 我们应该为“模型索引”创建一个新页面吗? --> | ||
− | {{KV:zh-cn|Model Index|intn=modelindex|short|给定转储<code>cl_precacheinfo modelprecache</code>表的数字索引将实体模型设置为索引的。{{warning | + | {{KV:zh-cn|Model Index|intn=modelindex|short|给定转储<code>cl_precacheinfo modelprecache</code>表的数字索引将实体模型设置为索引的。{{warning|如果实体具有''将要''播放的动画,则设置模型也必须有自己的序列,否则游戏会崩溃。}}|nofgd=1}} |
{{KV:zh-cn|Model Scale|intn=modelscale|float|模型大小的乘数。接受负值。然而,在大多数情况下不会改变物理碰撞。|nofgd=1|since=EP2|not={{portal}} {{l4ds}} {{src13}}|}} | {{KV:zh-cn|Model Scale|intn=modelscale|float|模型大小的乘数。接受负值。然而,在大多数情况下不会改变物理碰撞。|nofgd=1|since=EP2|not={{portal}} {{l4ds}} {{src13}}|}} | ||
− | :{{warning | + | :{{warning|负值或极高值可能导致崩溃!}} |
<!-- | <!-- | ||
++ Animating ++ | ++ Animating ++ | ||
Line 59: | Line 59: | ||
:*'''24:''' Fade Wider Pulse {{!}} 淡入淡出脉冲 | :*'''24:''' Fade Wider Pulse {{!}} 淡入淡出脉冲 | ||
:*'''26:''' Fade Near {{!}} 渐近 | :*'''26:''' Fade Near {{!}} 渐近 | ||
− | :{{ | + | :{{todo|18-21, 25}}}}{{KV:zh-cn|[[Render Mode]]|intn=rendermode|choices|在此实体上设置非标准渲染模式。}} |
{{ExpandBox:zh-cn| | {{ExpandBox:zh-cn| | ||
:*'''0''': Normal {{!}} 正常 | :*'''0''': Normal {{!}} 正常 |
Latest revision as of 11:59, 6 January 2024
本模板由大康更新于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}}
以上文档摘自 Template:KV BaseAnimating:zh-cn/doc。(编辑 | 历史记录)
编辑者可以在此模板的沙盒 (创建 | 将本页内容写入至沙盒页面) 和 testcases(测试用例) (创建) 页面编辑。
请将分类(类别)添加到 /doc 子页面。 此模板的子页面
编辑者可以在此模板的沙盒 (创建 | 将本页内容写入至沙盒页面) 和 testcases(测试用例) (创建) 页面编辑。
请将分类(类别)添加到 /doc 子页面。 此模板的子页面