Template:KV CBaseAnimating: Difference between revisions
Jump to navigation
Jump to search
SirYodaJedi (talk | contribs) (Hide body KV if static) |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{ {{PAGENAME}} }} | ||
<includeonly><onlyinclude>{{ | {{doc}} | ||
<includeonly> | |||
<onlyinclude>{{minititle|Studiomodel}} | |||
{{#if:{{{no model|}}}||<!--Hide model KV if overridden by game code --> | {{#if:{{{no model|}}}||<!--Hide model KV if overridden by game code --> | ||
{{KV|World Model|intn=model|string|The [[model]] this entity should appear as. 128-character limit.}} | {{KV|World Model|intn=model|string|The [[model]] this entity should appear as. 128-character limit.}} | ||
}}{{#if:{{{no skin|}}}||<!--Hide skin KV if overridden by game code --> | }} | ||
{{#if:{{{no skin|}}}||<!--Hide skin KV if overridden by game code --> | |||
{{KV|Skin|intn=skin|int|Some models have multiple [[$texturegroup|skins]]. This value selects from the index, starting with 0. {{tip|Hammer's model browser automatically updates this value if you use it to view different skins.}}{{#if:{{{static|}}}|{{bug|Static props with multiple [[skin]]s will always calculate [[texture shadows]] based upon the alpha channel(s) from the default skin's texture(s), even though the alternative skins' alpha textures are loaded by VRAD. (tested in {{dods}}).}} }}|}} | {{KV|Skin|intn=skin|int|Some models have multiple [[$texturegroup|skins]]. This value selects from the index, starting with 0. {{tip|Hammer's model browser automatically updates this value if you use it to view different skins.}}{{#if:{{{static|}}}|{{bug|Static props with multiple [[skin]]s will always calculate [[texture shadows]] based upon the alpha channel(s) from the default skin's texture(s), even though the alternative skins' alpha textures are loaded by VRAD. (tested in {{dods}}).}} }}|}} | ||
}} | }} | ||
{{#if: {{{static|}}} | |||
{{#if: | |||
{{{static|}}} | |||
| {{KV|Uniform Scale Override|intn=uniformscale|float|A multiplier for the size of the static prop model.|since={{csgo}}|}} | | {{KV|Uniform Scale Override|intn=uniformscale|float|A multiplier for the size of the static prop model.|since={{csgo}}|}} | ||
| | | {{KV|Model Scale|intn=modelscale|float|A multiplier for the size of the model.|since={{Src13}}}} | ||
{{KV| | |||
}} | }} | ||
{{KV| | {{#if:{{{no body|}}}||<!--Hide body KV if overridden by game code --> | ||
{{KV|Bodygroup|intn=body|int|Some models have multiple [[$bodygroup|submodels]]. This value selects from the index, starting with 0. May be overridden by animations and/or game code. {{note|If both {{code|body}} and {{code|SetBodyGroup}} are present, {{code|body}} will be prioritized.}}}} | |||
}} | }} | ||
{{KV Shadow|prep2={{{prep2|}}}}} | {{KV Shadow|prep2={{{prep2|}}}}} | ||
{{#if: {{{prep2|}}} || | |||
{{KV Reflection}} | |||
}}</onlyinclude> | |||
</includeonly> | |||
Revision as of 11:42, 7 August 2024
Studiomodel:
- World Model (model) <string>
- The model this entity should appear as. 128-character limit.
- Skin (skin) <integer>
- Some models have multiple skins. This value selects from the index, starting with 0.
Tip:Hammer's model browser automatically updates this value if you use it to view different skins.
- Model Scale (modelscale) <float> (in all games since
)
- A multiplier for the size of the model.
- Bodygroup (body) <integer>
- Some models have multiple submodels. This value selects from the index, starting with 0. May be overridden by animations and/or game code.
Note:If both body and SetBodyGroup are present, body will be prioritized.
Shadow:
- Disable Shadows (disableshadows) <boolean>
- Prevents the entity from creating cheap render-to-texture shadows, or lightmap shadows if the entity is a prop_static. Does not affect shadow mapping.
- Disable Receiving Shadows (disablereceiveshadows) <boolean>
- Prevent the entity from receiving dynamic shadows on itself.
- Shadow Cast Distance (shadowcastdist) <integer> !FGD
- Sets how far the entity casts dynamic shadows. 0 means default distance from the shadow_control entity.
- Disable Shadow Depth (disableshadowdepth) <boolean> (in all games since
)
- Used to disable rendering into shadow depth (for projected textures) for this entity.
- Disable flashlight (disableflashlight) <boolean> (in all games since
)
- Used to disable projected texture lighting and shadows on this entity.
- Projected Texture Cache (shadowdepthnocache) <integer choices> (in all games since
)
- Used to hint projected texture system whether it is sufficient to cache shadow volume of this entity or to force render it every frame instead.
Choices - 0 : Default
- 1 : No cache - render every frame
- 2 : Cache it - render only once
- Render in Fast Reflections (drawinfastreflection) <boolean> (in all games since
)
- If enabled, this entity will render in fast water reflections (i.e. when a water material specifies
$reflectonlymarkedentities
) and in the world impostor pass.
The above documentation is transcluded from Template:KV CBaseAnimating/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.