Model entity/Generic Keyvalues, Inputs and Outputs/Keyvalues: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Migration to scrollboxes, time to see how it goes; Added comments; Fixed collision groups showing the wrong number for #14)
(I don't think nested ScrollBoxes are desirable... Made scrolling optional with 'noscroll' parameter. Used <onlyinclude>.)
Line 1: Line 1:
<noinclude>{{lang|Template:KV BaseAnimating}}</noinclude>
{{lang|Template:KV BaseAnimating}}
<!--
<!--
   ++ Notes ++
   ++ Notes ++
Line 5: Line 5:
   2. The long {{{#if:}}} chain could probably ne better, however iirc its a giant workaround from ParserExtensions creating newlines with each new "if" statement? Look out for that if you want to refactor that.
   2. The long {{{#if:}}} chain could probably ne better, however iirc its a giant workaround from ParserExtensions creating newlines with each new "if" statement? Look out for that if you want to refactor that.
-->
-->
<includeonly>{{ScrollBox|title=Model|
<onlyinclude><includeonly>{{ScrollBox
|title=Model
|noscroll={{{noscroll|}}}
|
{{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.}}
{{KV|[[Skin]]|intn=skin or ModelSkin {{as}}|int|Some models have multiple skins. This value selects from the index, starting with 0.}}
{{KV|[[Skin]]|intn=skin or ModelSkin {{as}}|int|Some models have multiple skins. This value selects from the index, starting with 0.}}
Line 36: Line 39:
-->
-->
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Effects - Render</b>}}
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Effects - Render</b>}}
{{ScrollBox|
 
{{KV|Start Fade Distance|intn=fademindist|float|Distance at which the entity starts fading. If 0 or less, the entity will disappear instantly when end fade is hit. The value will scale appropriately if the entity is in a [[3D Skybox]].}}
{{KV|Start Fade Distance|intn=fademindist|float|Distance at which the entity starts fading. If 0 or less, the entity will disappear instantly when end fade is hit. The value will scale appropriately if the entity is in a [[3D Skybox]].}}
{{KV|End Fade Distance|intn=fademaxdist|float|Distance at which the entity ends fading. If 0 or less, the entity won't disappear at all. The value will scale appropriately if the entity is in a [[3D Skybox]].}}
{{KV|End Fade Distance|intn=fademaxdist|float|Distance at which the entity ends fading. If 0 or less, the entity won't disappear at all. The value will scale appropriately if the entity is in a [[3D Skybox]].}}
Line 77: Line 80:
:*'''9''': World Space Glow
:*'''9''': World Space Glow
:*'''10''': Don't Render}}
:*'''10''': Don't Render}}
}}
 
<!--
<!--
   ++ Misc ++
   ++ Misc ++
Line 84: Line 87:
-->
-->
<!-- IF: L4D -->{{#if:{{{l4d|}}}|
<!-- IF: L4D -->{{#if:{{{l4d|}}}|
{{ScrollBox|
 
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Effects - Environment</b>}}
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Effects - Environment</b>}}
{{KV|Disable Shadows|intn=disableshadows|boolean|Prevent the entity from creating cheap render-to-texture shadows. Does not affect [[shadow mapping]].}}
{{KV|Disable Shadows|intn=disableshadows|boolean|Prevent the entity from creating cheap render-to-texture shadows. Does not affect [[shadow mapping]].}}
Line 91: Line 94:
{{KV|Lighting Origin|intn=LightingOrigin|targetname|Select an entity (not{{ent|info_lighting}}entity!) from which to sample lighting instead of the entity's [[origin]].}}
{{KV|Lighting Origin|intn=LightingOrigin|targetname|Select an entity (not{{ent|info_lighting}}entity!) from which to sample lighting instead of the entity's [[origin]].}}
{{KV|Lighting Origin Offset|intn=LightingOriginHack|targetname|The{{ent|info_lighting_relative}}from which to sample lighting instead of the entity's origin.|not={{l4ds}}|nofgd=1}}
{{KV|Lighting Origin Offset|intn=LightingOriginHack|targetname|The{{ent|info_lighting_relative}}from which to sample lighting instead of the entity's origin.|not={{l4ds}}|nofgd=1}}
}}
 
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Miscellaneous</b>}}
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Miscellaneous</b>}}
{{ScrollBox|
 
{{KV SystemLevelChoice}}
{{KV SystemLevelChoice}}
}}
 
| <!-- ELSE IF: L4D2 -->{{#if:{{{l4d2|}}}|
| <!-- ELSE IF: L4D2 -->{{#if:{{{l4d2|}}}|
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Effects - Environment</b>}}
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Effects - Environment</b>}}
{{ScrollBox|
 
{{KV|Disable Shadows|intn=disableshadows|boolean|Prevent the entity from creating cheap render-to-texture shadows. Does not affect [[shadow mapping]].}}
{{KV|Disable Shadows|intn=disableshadows|boolean|Prevent the entity from creating cheap render-to-texture shadows. Does not affect [[shadow mapping]].}}
{{KV|Disable Receiving Shadows|intn=disablereceiveshadows|boolean|Prevent the entity from receiving shadows on itself.}}
{{KV|Disable Receiving Shadows|intn=disablereceiveshadows|boolean|Prevent the entity from receiving shadows on itself.}}
Line 104: Line 107:
{{KV|Lighting Origin|intn=LightingOrigin|targetname|Select an entity (not{{ent|info_lighting}}entity!) from which to sample lighting instead of the entity's [[origin]].}}
{{KV|Lighting Origin|intn=LightingOrigin|targetname|Select an entity (not{{ent|info_lighting}}entity!) from which to sample lighting instead of the entity's [[origin]].}}
{{KV|Lighting Origin Offset|intn=LightingOriginHack|targetname|The{{ent|info_lighting_relative}}from which to sample lighting instead of the entity's origin.|not={{l4ds}}|nofgd=1}}
{{KV|Lighting Origin Offset|intn=LightingOriginHack|targetname|The{{ent|info_lighting_relative}}from which to sample lighting instead of the entity's origin.|not={{l4ds}}|nofgd=1}}
}}
 
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Miscellaneous</b>}}
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Miscellaneous</b>}}
{{ScrollBox|
 
{{KV|Glow Backface Multiple|intn=glowbackfacemult|float|nofgd=1|If this object has a glow effect, multiply the effect by this much on the sides of the object that are facing away from the viewer.|only={{l4d2}}}}
{{KV|Glow Backface Multiple|intn=glowbackfacemult|float|nofgd=1|If this object has a glow effect, multiply the effect by this much on the sides of the object that are facing away from the viewer.|only={{l4d2}}}}
{{KV SystemLevelChoice}}
{{KV SystemLevelChoice}}
}}
 
| <!-- ELSE IF: AS -->{{#if:{{{as|}}}|
| <!-- ELSE IF: AS -->{{#if:{{{as|}}}|
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Effects - Environment</b>}}
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Effects - Environment</b>}}
{{ScrollBox|
 
{{KV|Disable Shadows|intn=disableshadows|boolean|Prevent the entity from creating cheap render-to-texture shadows. Does not affect [[shadow mapping]].}}
{{KV|Disable Shadows|intn=disableshadows|boolean|Prevent the entity from creating cheap render-to-texture shadows. Does not affect [[shadow mapping]].}}
{{KV|Disable Receiving Shadows|intn=disablereceiveshadows|boolean|Prevent the entity from receiving shadows on itself.}}
{{KV|Disable Receiving Shadows|intn=disablereceiveshadows|boolean|Prevent the entity from receiving shadows on itself.}}
Line 118: Line 121:
{{KV|Lighting Origin|intn=LightingOrigin|targetname|Select an entity (not{{ent|info_lighting}}entity!) from which to sample lighting instead of the entity's [[origin]].}}
{{KV|Lighting Origin|intn=LightingOrigin|targetname|Select an entity (not{{ent|info_lighting}}entity!) from which to sample lighting instead of the entity's [[origin]].}}
{{KV|Lighting Origin Offset|intn=LightingOriginHack|targetname|The{{ent|info_lighting_relative}}from which to sample lighting instead of the entity's origin.|not={{l4ds}}|nofgd=1}}
{{KV|Lighting Origin Offset|intn=LightingOriginHack|targetname|The{{ent|info_lighting_relative}}from which to sample lighting instead of the entity's origin.|not={{l4ds}}|nofgd=1}}
}}
 
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Miscellaneous</b>}}
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Miscellaneous</b>}}
{{ScrollBox|
 
{{KV|Move Type|intn=MoveType|choices|Sets a movetype for this entity, which changes its movement behavior.<!-- BREAK -->{{ExpandBox|
{{KV|Move Type|intn=MoveType|choices|Sets a movetype for this entity, which changes its movement behavior.<!-- BREAK -->{{ExpandBox|
:*'''0''': None, don't move
:*'''0''': None, don't move
Line 157: Line 160:
|since={{as}}|nofgd=1}}
|since={{as}}|nofgd=1}}
{{KV SystemLevelChoice}}
{{KV SystemLevelChoice}}
}}
 
| <!-- ELSE IF: BASE -->{{#if:{{{base|}}}|
| <!-- ELSE IF: BASE -->{{#if:{{{base|}}}|
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Effects - Environment</b>}}
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Effects - Environment</b>}}
{{ScrollBox|
 
{{KV|Disable Shadows|intn=disableshadows|boolean|Prevent the entity from creating cheap render-to-texture shadows. Does not affect [[shadow mapping]].}}
{{KV|Disable Shadows|intn=disableshadows|boolean|Prevent the entity from creating cheap render-to-texture shadows. Does not affect [[shadow mapping]].}}
{{KV|Disable Receiving Shadows|intn=disablereceiveshadows|boolean|Prevent the entity from receiving shadows on itself.}}
{{KV|Disable Receiving Shadows|intn=disablereceiveshadows|boolean|Prevent the entity from receiving shadows on itself.}}
Line 166: Line 169:
{{KV|Lighting Origin|intn=LightingOrigin|targetname|Select an entity (not{{ent|info_lighting}}entity!) from which to sample lighting instead of the entity's [[origin]].}}
{{KV|Lighting Origin|intn=LightingOrigin|targetname|Select an entity (not{{ent|info_lighting}}entity!) from which to sample lighting instead of the entity's [[origin]].}}
{{KV|Lighting Origin Offset|intn=LightingOriginHack|targetname|The{{ent|info_lighting_relative}}from which to sample lighting instead of the entity's origin.|not={{l4ds}}|nofgd=1}}
{{KV|Lighting Origin Offset|intn=LightingOriginHack|targetname|The{{ent|info_lighting_relative}}from which to sample lighting instead of the entity's origin.|not={{l4ds}}|nofgd=1}}
}}
 
|<!-- ELSE: [NOT BASE;PORTAL2] -->
|<!-- ELSE: [NOT BASE;PORTAL2] -->
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Effects - Environment</b>}}
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Effects - Environment</b>}}
{{ScrollBox|
 
{{KV|Disable Shadows|intn=disableshadows|boolean|Prevent the entity from creating cheap render-to-texture shadows. Does not affect [[shadow mapping]].}}
{{KV|Disable Shadows|intn=disableshadows|boolean|Prevent the entity from creating cheap render-to-texture shadows. Does not affect [[shadow mapping]].}}
{{KV|Disable Receiving Shadows|intn=disablereceiveshadows|boolean|Prevent the entity from receiving shadows on itself.}}
{{KV|Disable Receiving Shadows|intn=disablereceiveshadows|boolean|Prevent the entity from receiving shadows on itself.}}
Line 182: Line 185:
:*2: Cache it - render only once
:*2: Cache it - render only once
|since=P2}}
|since=P2}}
}}
 
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Miscellaneous</b>}}
{{style|border-bottom:1px solid #3A3937;display:block;  color:white;font-size:16px;padding-bottom:6px|<b>Miscellaneous</b>}}
{{ScrollBox|
 
{{KV|Move Type|intn=MoveType|choices|Sets a movetype for this entity, which changes its movement behavior.<!-- BREAK -->{{ExpandBox|
{{KV|Move Type|intn=MoveType|choices|Sets a movetype for this entity, which changes its movement behavior.<!-- BREAK -->{{ExpandBox|
:*'''0''': None, don't move
:*'''0''': None, don't move
Line 222: Line 225:
{{KV|No Animation Sounds|intn=SuppressAnimSounds|boolean|Silences sounds linked to animations.|since=P2|nofgd=1}}
{{KV|No Animation Sounds|intn=SuppressAnimSounds|boolean|Silences sounds linked to animations.|since=P2|nofgd=1}}
{{KV SystemLevelChoice}}
{{KV SystemLevelChoice}}
}}
 
| }}}}}}}}
| }}}}}}}}
}}</includeonly>
}}</includeonly></onlyinclude>
<noinclude>
 
{{documentation}}
{{documentation}}
<!-- Add categories to the /doc subpage, not here -->
<!-- Add categories to the /doc subpage, not here -->
</noinclude>

Revision as of 03:35, 16 January 2022

English (en)Translate (Translate)


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)
Icon-translate.png Available doc translations
Info.png
The Model entity/Generic Keyvalues, Inputs and Outputs/Keyvalues/doc documentation page does not exist.
English documentation will be displayed instead, which you can translate using Google Translate (or similar software). If there is nothing after this message, most likely the documentation does not exist even in English.
Model entity/Generic Keyvalues, Inputs and Outputs/Keyvalues/doc