Template:KV CBaseAnimating

来自Valve Developer Community
跳转到导航 跳转到搜索

CBaseAnimating:

World Model (model) <model(en)>
The model this entity should appear as. 128-character limit.
Skin (skin) <整数(en)>
Some models have multiple skins. This value selects from the index, starting with 0. May be overridden by game code.
Tip.pngTip:Hammer's model browser automatically updates this value if you use it to view different skins.
Model Scale (modelscale) <浮点型(en)> (存在于自 Alien Swarm) (也存在于 Source 2013)
A multiplier for the size of the model.
Tip.pngTip:In Hammer++ Hammer++ with a prop selected in 3D view, hold Ctrl and scroll the mouse wheel to change the modelscale in increments of 0.5. Holding Shift will scale it in smaller increments of 0.05.
Bodygroup (body / SetBodyGroup) <整数(en)>
Some models have multiple submodels. This value selects from the index, starting with 0. May be overridden by animations and/or game code.
Note.png注意:If both body and SetBodyGroup are present (even if set to 0), body will be prioritized.
Sequence (sequence) <整数(en)> !FGD
Default animation sequence for the model to be playing after spawning. May be overridden by game code.
Lighting Origin (lightingorigin) <target_destination>
Select an entity (not info_lighting!) from which to sample lighting and cubemaps instead of the entity's $illumposition.

阴影:

Disable Shadows (disableshadows) <布尔值(en)>
防止该实体生成廉价的渲染到纹理的阴影,或如果实体是 prop_static 的光照贴图阴影。不影响影子映射。
禁用接收阴影 (disablereceiveshadows) <布尔值(en)>
防止该实体接收动态阴影。
Shadow Cast Distance (shadowcastdist) <整数(en)> !FGD
设置实体投射动态阴影的距离。0 表示从 shadow_control 实体开始的默认距离。
Disable Shadow Depth (disableshadowdepth) <布尔值(en)> (存在于自 Portal 2)
用于禁用此实体的阴影深度(用于投影纹理)的渲染。
Disable flashlight (disableflashlight) <布尔值(en)> (存在于自 Portal 2)
用于禁用此实体的投影纹理照明和阴影。
Projected Texture Cache (shadowdepthnocache) <integer choices(en)> (存在于自 Portal 2)
用于提示投影纹理系统缓存此实体的阴影体积是否足够,或改为强制每帧渲染。
选项
  • 0 : 默认
  • 1 : 无缓存 - 每帧渲染
  • 2 : 缓存 - 只渲染一次
Render in Fast Reflections (drawinfastreflection) <布尔值(en)> (存在于自 Portal 2)
If enabled, this entity will render in fast water reflections (i.e. when a water material specifies $reflectonlymarkedentities) and in the world impostor pass.
English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.png模板文档 [查看] [编辑] [创建 中文 (zh)]
Icon-translate.png Available doc translations
Info.png
文档页面 Template:KV CBaseAnimating/doc/zh 不存在。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。

Usage

Note.png注意:model, skin, body, and sequence KVs can be hidden individually with {{{no model}}}, {{{no skin}}}, {{{no body}}}, and {{{no sequence}}}, respectively.
Parameter Description Example Preview
prep2 Call this template with |prep2=1 to hide KVs added in Portal 2 Portal 2. {{KV Studiomodel|prep2=1}} CBaseAnimating:
World Model (model) <model(en)>
The model this entity should appear as. 128-character limit.
Skin (skin) <整数(en)>
Some models have multiple skins. This value selects from the index, starting with 0. May be overridden by game code.
Tip.pngTip:Hammer's model browser automatically updates this value if you use it to view different skins.
Model Scale (modelscale) <浮点型(en)> (存在于自 Alien Swarm) (也存在于 Source 2013)
A multiplier for the size of the model.
Tip.pngTip:In Hammer++ Hammer++ with a prop selected in 3D view, hold Ctrl and scroll the mouse wheel to change the modelscale in increments of 0.5. Holding Shift will scale it in smaller increments of 0.05.
Bodygroup (body / SetBodyGroup) <整数(en)>
Some models have multiple submodels. This value selects from the index, starting with 0. May be overridden by animations and/or game code.
Note.png注意:If both body and SetBodyGroup are present (even if set to 0), body will be prioritized.
Sequence (sequence) <整数(en)> !FGD
Default animation sequence for the model to be playing after spawning. May be overridden by game code.
Lighting Origin (lightingorigin) <target_destination>
Select an entity (not info_lighting!) from which to sample lighting and cubemaps instead of the entity's $illumposition.

阴影:

Disable Shadows (disableshadows) <布尔值(en)>
防止该实体生成廉价的渲染到纹理的阴影,或如果实体是 prop_static 的光照贴图阴影。不影响影子映射。
禁用接收阴影 (disablereceiveshadows) <布尔值(en)>
防止该实体接收动态阴影。
Shadow Cast Distance (shadowcastdist) <整数(en)> !FGD
设置实体投射动态阴影的距离。0 表示从 shadow_control 实体开始的默认距离。


No Parameter N/A {{KV Studiomodel}} CBaseAnimating:
World Model (model) <model(en)>
The model this entity should appear as. 128-character limit.
Skin (skin) <整数(en)>
Some models have multiple skins. This value selects from the index, starting with 0. May be overridden by game code.
Tip.pngTip:Hammer's model browser automatically updates this value if you use it to view different skins.
Model Scale (modelscale) <浮点型(en)> (存在于自 Alien Swarm) (也存在于 Source 2013)
A multiplier for the size of the model.
Tip.pngTip:In Hammer++ Hammer++ with a prop selected in 3D view, hold Ctrl and scroll the mouse wheel to change the modelscale in increments of 0.5. Holding Shift will scale it in smaller increments of 0.05.
Bodygroup (body / SetBodyGroup) <整数(en)>
Some models have multiple submodels. This value selects from the index, starting with 0. May be overridden by animations and/or game code.
Note.png注意:If both body and SetBodyGroup are present (even if set to 0), body will be prioritized.
Sequence (sequence) <整数(en)> !FGD
Default animation sequence for the model to be playing after spawning. May be overridden by game code.
Lighting Origin (lightingorigin) <target_destination>
Select an entity (not info_lighting!) from which to sample lighting and cubemaps instead of the entity's $illumposition.

阴影:

Disable Shadows (disableshadows) <布尔值(en)>
防止该实体生成廉价的渲染到纹理的阴影,或如果实体是 prop_static 的光照贴图阴影。不影响影子映射。
禁用接收阴影 (disablereceiveshadows) <布尔值(en)>
防止该实体接收动态阴影。
Shadow Cast Distance (shadowcastdist) <整数(en)> !FGD
设置实体投射动态阴影的距离。0 表示从 shadow_control 实体开始的默认距离。
Disable Shadow Depth (disableshadowdepth) <布尔值(en)> (存在于自 Portal 2)
用于禁用此实体的阴影深度(用于投影纹理)的渲染。
Disable flashlight (disableflashlight) <布尔值(en)> (存在于自 Portal 2)
用于禁用此实体的投影纹理照明和阴影。
Projected Texture Cache (shadowdepthnocache) <integer choices(en)> (存在于自 Portal 2)
用于提示投影纹理系统缓存此实体的阴影体积是否足够,或改为强制每帧渲染。
选项
  • 0 : 默认
  • 1 : 无缓存 - 每帧渲染
  • 2 : 缓存 - 只渲染一次
Render in Fast Reflections (drawinfastreflection) <布尔值(en)> (存在于自 Portal 2)
If enabled, this entity will render in fast water reflections (i.e. when a water material specifies $reflectonlymarkedentities) and in the world impostor pass.