Model entity/Generic Keyvalues, Inputs and Outputs/Inputs: Difference between revisions
Jump to navigation
Jump to search
m (Default to noscroll with optional scrolling) |
Kestrelguy (talk | contribs) m (added the new inputs for TF2.) |
||
Line 1: | Line 1: | ||
{{lang|{{FULLPAGENAME}}}} | {{lang|{{FULLPAGENAME}}}} | ||
{{documentation}} | |||
<onlyinclude><includeonly><!-- | <onlyinclude><includeonly><!-- | ||
-->{{ScrollBox | -->{{ScrollBox | ||
|title=Model | |title=Model | ||
|noscroll={{{noscroll | |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 | {{#if:{{{portal2}}}|{{I Reflection}} | ||
{{I Shadow}} | {{I Shadow}} | ||
|{{I Shadow|prep2=1}} }} }}<!-- | |{{I Shadow|prep2=1}} }} }}<!-- | ||
--></includeonly></onlyinclude> | --></includeonly></onlyinclude> | ||