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

From Valve Developer Community
Jump to navigation Jump to search
m (Added {{lang}}.)
(Migration to scrollboxes, time to see how it goes; Added comments; Fixed collision groups showing the wrong number for #14)
Line 1: Line 1:
<noinclude>{{lang|Template:KV BaseAnimating}}</noinclude><includeonly>{{minititle|Model}}
<noinclude>{{lang|Template:KV BaseAnimating}}</noinclude>
<!--
  ++ Notes ++
  1. All those "BREAK" comments are there, because templates like these are sensitive to line breaks, and have been optimized out to avoid entity pages with random weird portions of blank spaces inbetween. Its for readability basically, and you should pretend those comments are a line break.
  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|
{{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 30: Line 36:
-->
-->
{{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 35: Line 42:
{{KV|Render FX / Transparency (0 - 255)|intn=renderamt|int|Transparency amount, requires a Render Mode other than '''Normal'''. 0 is invisible, 255 is fully visible.}}
{{KV|Render FX / Transparency (0 - 255)|intn=renderamt|int|Transparency amount, requires a Render Mode other than '''Normal'''. 0 is invisible, 255 is fully visible.}}
{{KV|Render Color (R G B)|intn=rendercolor|color255|Color tint.}}
{{KV|Render Color (R G B)|intn=rendercolor|color255|Color tint.}}
{{KV|Render FX|intn=renderfx|choices|Preset pattern of appearance effects.}}
{{KV|Render FX|intn=renderfx|choices|Preset pattern of appearance effects.}}<!-- BREAK -->{{ExpandBox|
:{{ExpandBox|
:*'''0:''' None
:*'''0:''' None
:*'''1:''' Slow Pulse
:*'''1:''' Slow Pulse
Line 59: Line 65:
:*'''24:''' Fade Wider Pulse
:*'''24:''' Fade Wider Pulse
:*'''26:''' Fade Near
:*'''26:''' Fade Near
:{{todo|18-21, 25}}}}{{KV|[[Render Mode]]|intn=rendermode|choices|Set a non-standard rendering mode on this entity.}}
:{{todo|18-21, 25}}}}{{KV|[[Render Mode]]|intn=rendermode|choices|Set a non-standard rendering mode on this entity.}}<!-- BREAK -->{{ExpandBox|
{{ExpandBox|
:*'''0''': Normal
:*'''0''': Normal
:*'''1''': Color
:*'''1''': Color
Line 72: Line 77:
:*'''9''': World Space Glow
:*'''9''': World Space Glow
:*'''10''': Don't Render}}
:*'''10''': Don't Render}}
}}
<!--
  ++ Misc ++
Game Specific Configs
"Effects - Environment" included for scrolling
-->
<!-- 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 78: Line 91:
{{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}}
<!--
}}
  ++ Misc ++
Game Specific Configs
-->
<!-- IF: L4D -->{{#if:{{{l4d|}}}|
{{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>}}
{{ScrollBox|
{{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|Shadow Cast Distance|intn=shadowcastdist|int|Sets how far the entity casts dynamic shadows. 0 means default distance from the [[shadow_control]] entity.}}
{{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}}
}}
{{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>}}
{{ScrollBox|
{{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|Shadow Cast Distance|intn=shadowcastdist|int|Sets how far the entity casts dynamic shadows. 0 means default distance from the [[shadow_control]] entity.}}
{{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}}
}}
{{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>}}
{{KV|Move Type|intn=MoveType|choices|Sets a movetype for this entity, which changes its movement behavior.
{{ScrollBox|
{{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
:*'''1''': Isometric
:*'''1''': Isometric
Line 106: Line 135:
:*'''11''': Custom}}
:*'''11''': Custom}}
|since={{as}}|nofgd=1}}
|since={{as}}|nofgd=1}}
{{KV|Collision Group|intn=CollisionGroup|choices|Sets a collision group for this entity, which changes its collision behavior.
{{KV|Collision Group|intn=CollisionGroup|choices|Sets a collision group for this entity, which changes its collision behavior.<!-- BREAK -->{{ExpandBox|
{{ExpandBox|
:*'''0''': None
:*'''0''': None
:*'''1''': Debris, collides only with the world and static props
:*'''1''': Debris, collides only with the world and static props
Line 122: Line 150:
:*'''12''': Projectile
:*'''12''': Projectile
:*'''13''': Door blocker, not permitted to go near doors
:*'''13''': Door blocker, not permitted to go near doors
:*'''1''': Passable Door
:*'''14''': Passable Door
:*'''15''': Dissolving
:*'''15''': Dissolving
:*'''16''': Pushaway
:*'''16''': Pushaway
Line 129: Line 157:
|since={{as}}|nofgd=1}}
|since={{as}}|nofgd=1}}
{{KV SystemLevelChoice}}
{{KV SystemLevelChoice}}
| <!-- ELSE IF: NOT BASE [PORTAL2] -->{{#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>}}
{{ScrollBox|
{{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|Shadow Cast Distance|intn=shadowcastdist|int|Sets how far the entity casts dynamic shadows. 0 means default distance from the [[shadow_control]] entity.}}
{{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}}
}}
|<!-- ELSE: [NOT BASE;PORTAL2] -->
{{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 Receiving Shadows|intn=disablereceiveshadows|boolean|Prevent the entity from receiving shadows on itself.}}
{{KV|Shadow Cast Distance|intn=shadowcastdist|int|Sets how far the entity casts dynamic shadows. 0 means default distance from the [[shadow_control]] entity.}}
{{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|Disable Flashlight|intn=disableflashlight|boolean|Used to disable [[env_projectedtexture|projected texture]] lighting and shadows on this entity.|since=P2}}
{{KV|Disable Flashlight|intn=disableflashlight|boolean|Used to disable [[env_projectedtexture|projected texture]] lighting and shadows on this entity.|since=P2}}
{{KV|Disable ShadowDepth|intn=disableshadowdepth|boolean|Makes this entity not cast a shadow from{{ent|env_projectedtexture}}entities.|since=P2}}
{{KV|Disable ShadowDepth|intn=disableshadowdepth|boolean|Makes this entity not cast a shadow from{{ent|env_projectedtexture}}entities.|since=P2}}
Line 137: Line 182:
:*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>}}
{{KV|Move Type|intn=MoveType|choices|Sets a movetype for this entity, which changes its movement behavior.
{{ScrollBox|
{{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
:*'''1''': Isometric
:*'''1''': Isometric
Line 153: Line 199:
:*'''11''': Custom}}
:*'''11''': Custom}}
|since={{as}}|nofgd=1}}
|since={{as}}|nofgd=1}}
{{KV|Collision Group|intn=CollisionGroup|choices|Sets a collision group for this entity, which changes its collision behavior.
{{KV|Collision Group|intn=CollisionGroup|choices|Sets a collision group for this entity, which changes its collision behavior.<!-- BREAK -->{{ExpandBox|
{{ExpandBox|
:*'''0''': None
:*'''0''': None
:*'''1''': Debris, collides only with the world and static props
:*'''1''': Debris, collides only with the world and static props
Line 169: Line 214:
:*'''12''': Projectile
:*'''12''': Projectile
:*'''13''': Door blocker, not permitted to go near doors
:*'''13''': Door blocker, not permitted to go near doors
:*'''1''': Passable Door
:*'''14''': Passable Door
:*'''15''': Dissolving
:*'''15''': Dissolving
:*'''16''': Pushaway
:*'''16''': Pushaway
Line 177: Line 222:
{{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>
<noinclude>
<noinclude>
{{documentation}}
{{documentation}}
<!-- Add categories to the /doc subpage, not here -->
<!-- Add categories to the /doc subpage, not here -->
</noinclude>
</noinclude>

Revision as of 04:15, 1 November 2021

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