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

From Valve Developer Community
Jump to navigation Jump to search
m (Default to noscroll with optional scrolling)
m (added the new inputs for TF2.)
Line 1: Line 1:
{{lang|{{FULLPAGENAME}}}}
{{lang|{{FULLPAGENAME}}}}
This template is our holder for all [[inputs]] that are assigned through {{ent|CBaseAnimating}}.
{{documentation}}
=== Parameters ===
*{{param|portal2}} - When applying to a page, add <code>|portal2=1</code> to display inputs added by {{portal2|3}} (if they should be there).
*{{param|noscroll}} - This parameter is relayed to {{tl|ScrollBox}}.
The following is the result of <code><nowiki>{{I BaseAnimating|portal2=1}}</nowiki></code>:
{{expandBox|{{I BaseAnimating|portal2=1}}|Result}}
The following is the result of <code><nowiki>{{I BaseAnimating|noscroll=1}}</nowiki></code>:
{{expandBox|{{I BaseAnimating|noscroll=1}}|Result}}
----
[[Category:Input Templates|BaseAnimating]]
 
<onlyinclude><includeonly><!--
<onlyinclude><includeonly><!--
-->{{ScrollBox
-->{{ScrollBox
|title=Model
|title=Model
|noscroll={{{noscroll|1}}}
|noscroll={{{noscroll}}}
|
|
{{IO|skin|param=int|Selects a [[skin]] from the model's index, starting with 0.}}
{{IO|skin|param=int|Selects a [[skin]] from the model's index, starting with 0.}}
Line 27: Line 16:
|{{IO|SetLightingOriginHack|param=targetname|Offsets the entity's lighting origin by their distance from an {{ent|info_lighting_relative}}. Use <code>SetLightingOrigin</code> instead.|deprecated=1|removed={{l4d}}}} }}
|{{IO|SetLightingOriginHack|param=targetname|Offsets the entity's lighting origin by their distance from an {{ent|info_lighting_relative}}. Use <code>SetLightingOrigin</code> instead.|deprecated=1|removed={{l4d}}}} }}
{{IO|fademindist|param=float|Sets distance at which the entity starts fading. If <0, the entity will disappear instantly when end fade is hit. The value will scale appropriately if the entity is in a [[3D Skybox]].}}
{{IO|fademindist|param=float|Sets distance at which the entity starts fading. If <0, the entity will disappear instantly when end fade is hit. The value will scale appropriately if the entity is in a [[3D Skybox]].}}
{{IO|fademaxdist|param=float|Sets distance at which the entity ends fading. If <0, the entity won't disappear at all. The value will scale appropriately if the entity is in a [[3D Skybox]].}}{{#if: {{{portal2|}}} |
{{IO|fademaxdist|param=float|Sets distance at which the entity ends fading. If <0, the entity won't disappear at all. The value will scale appropriately if the entity is in a [[3D Skybox]].}}{{#if: {{{portal2|1}}} |
| {{IO|SetModelScale|param=vector|only={{src13}}|Multiplies the size of the model. Does not alter the physics collisions in most cases. Can take two values separated by a space, in which case the first value would be the target model scale and the second value would be the number of seconds the change in scale will be spread over. If there is no second value, the model will scale instantly.{{tip|The <code>modelscale</code> keyvalue can be [[AddOutput]]ed as a workaround for other games with this input missing.}}
| {{IO|SetModelScale|param=vector|only={{src13}}|Multiplies the size of the model. Does not alter the physics collisions in most cases. Can take two values separated by a space, in which case the first value would be the target model scale and the second value would be the number of seconds the change in scale will be spread over. If there is no second value, the model will scale instantly.{{tip|The <code>modelscale</code> keyvalue can be [[AddOutput]]ed as a workaround for other games with this input missing.}}
{{warning|Negative or extremely high values can cause crashes!}}}} }}
{{warning|Negative or extremely high values can cause crashes!}}}} }}<!--
-->{{#if:{{{tf2}}}|
{{IO|SetCycle|param=float|Skip to a specific point in the current animation.|only={{tf2}}}}
{{IO|SetModel|param=string|Changes the model to the specified path. Form of <tt>models/ammo/ammo_us.mdl</tt>.
{{important|Absolutely NO quotes! Make sure you use the forward slash '/'. [[Merasmus]] says to heed this advice, else thou shalt corrupt the VMF.}}|only={{tf2}}}}
{{IO|SetPlayBackRate|param=float|Change the animation speed multiplier.|only={{tf2}}}} }}
{{IO|Alpha|param=int|Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its '''[[Render Mode]] (rendermode)''' set to a number other than <code>0</code>.}}
{{IO|Alpha|param=int|Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its '''[[Render Mode]] (rendermode)''' set to a number other than <code>0</code>.}}
{{IO|AlternativeSorting|param=bool|Swaps the rendering order of the entity. Used to attempt to fix sorting problems when rendering, for example an object rendering in front of translucent materials.}}
{{IO|AlternativeSorting|param=bool|Swaps the rendering order of the entity. Used to attempt to fix sorting problems when rendering, for example an object rendering in front of translucent materials.}}
Line 36: Line 30:
{{IO|EnableDamageForces|Allows the entity to be pushed by damage done to it (usually force amount correlates with the damage done).}}
{{IO|EnableDamageForces|Allows the entity to be pushed by damage done to it (usually force amount correlates with the damage done).}}
{{IO|DisableDamageForces|Prevents the entity from being pushed by damage done to it.}}
{{IO|DisableDamageForces|Prevents the entity from being pushed by damage done to it.}}
{{#if:{{{portal2|}}}|{{I Reflection}}
{{#if:{{{portal2}}}|{{I Reflection}}
{{I Shadow}}  
{{I Shadow}}  
|{{I Shadow|prep2=1}} }} }}<!--
|{{I Shadow|prep2=1}} }} }}<!--
--></includeonly></onlyinclude>
--></includeonly></onlyinclude>
[[Category:Input Templates]]

Revision as of 19:02, 12 October 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/Inputs/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/Inputs/doc