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

From Valve Developer Community
Jump to navigation Jump to search
(Added ScrollBox and 'noscroll' parameter.)
m (Now, portal2=0 will no longer show portal2 inputs.)
Line 36: 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|}}}|
-->{{#ifeq:{{{portal2|0}}}|0||
{{IO|EnableDraw|since=P2|Removes {{ent|EF_NODRAW}} from the entity.}}
{{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}}.}}

Revision as of 20:04, 26 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}}:

Note.pngNote:Content moved to Rendering and studio model related KIO/Inputs for continuation of page history