Model entity/Generic Keyvalues, Inputs and Outputs/Inputs: Difference between revisions
Jump to navigation
Jump to search
Note:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history
(Started using new Since, etc. templates) |
(Added ScrollBox and 'noscroll' parameter.) |
||
Line 1: | Line 1: | ||
This template is our holder for all [[inputs]] that are assigned through {{ent|CBaseAnimating}}. | |||
=== Parameters === | |||
When applying to a page, add <code>|portal2=1</code> to display inputs added by Portal 2 (if they should be there). | *{{param|portal2}} - When applying to a page, add <code>|portal2=1</code> to display inputs added by {{game name|portal2|name=Portal 2}} (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>: | |||
{{I BaseAnimating|portal2=1}} | |||
---- | ---- | ||
[[Category:Input Templates|BaseAnimating]] | [[Category:Input Templates|BaseAnimating]] | ||
< | |||
<onlyinclude><includeonly><!-- | |||
-->{{ScrollBox | |||
|title=Model | |||
|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.}} | ||
{{IO|SetBodyGroup|param=int|Sets the the active [[$bodygroup]].}} | {{IO|SetBodyGroup|param=int|Sets the the active [[$bodygroup]].}} | ||
Line 27: | Line 36: | ||
{{IO|EnableShadow|Allows the entity to draw a [[render target]] shadow.}} | {{IO|EnableShadow|Allows the entity to draw a [[render target]] shadow.}} | ||
{{IO|DisableShadow|Prevents the entity from drawing a [[render target]] shadow.}}<!-- | {{IO|DisableShadow|Prevents the entity from drawing a [[render target]] shadow.}}<!-- | ||
-->{{#if:{{{portal2|}}}|{{IO|EnableDraw|since=P2|Removes {{ent|EF_NODRAW}} from the entity.}} | -->{{#if:{{{portal2|}}}| | ||
{{IO|EnableDraw|since=P2|Removes {{ent|EF_NODRAW}} from the entity.}} | |||
{{IO|DisableDraw|since={{portal2}}|Applies {{ent|EF_NODRAW}} to the entity. Note that this is different than {{ent|rendermode|10}}.}} | {{IO|DisableDraw|since={{portal2}}|Applies {{ent|EF_NODRAW}} to the entity. Note that this is different than {{ent|rendermode|10}}.}} | ||
{{IO|EnableReceivingFlashlight|since={{portal2}}|Makes it so that the entity is lit by {{ent|env_projectedtexture}}s.}} | {{IO|EnableReceivingFlashlight|since={{portal2}}|Makes it so that the entity is lit by {{ent|env_projectedtexture}}s.}} | ||
{{IO|DisableReceivingFlashlight|since={{portal2}}|Prevents the entity from being lit by {{ent|env_projectedtexture}}s. The shadow made by the texture will still cast.}} | {{IO|DisableReceivingFlashlight|since={{portal2}}|Prevents the entity from being lit by {{ent|env_projectedtexture}}s. The shadow made by the texture will still cast.}} | ||
{{IO|EnableDrawInFastReflection|since={{portal2}}|Makes the entity be rendered in reflections from water materials using <code>$reflectonlymarkedentities</code>.}} | {{IO|EnableDrawInFastReflection|since={{portal2}}|Makes the entity be rendered in reflections from water materials using <code>$reflectonlymarkedentities</code>.}} | ||
{{IO|DisableDrawInFastReflection|since={{portal2}}|Prevents the entity from rendering in fast reflections | {{IO|DisableDrawInFastReflection|since={{portal2}}|Prevents the entity from rendering in fast reflections.}} | ||
}} | |||
}}<!-- | |||
--></includeonly></onlyinclude> | |||
[[Category:Input Templates]] |
Revision as of 02:32, 16 January 2022
This template is our holder for all inputs that are assigned through CBaseAnimating.
Parameters
- {{{portal2}}} - When applying to a page, add
|portal2=1
to display inputs added by Template:Game name (if they should be there). - {{{noscroll}}} - This parameter is relayed to
{{ScrollBox}}
.
The following is the result of {{I BaseAnimating|portal2=1}}
:
