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

From Valve Developer Community
Jump to navigation Jump to search
(Add an option for Source 2 games to include OnKilled with a new description and no L4D warning)
(using strings)
Line 9: Line 9:
----
----
</noinclude><!--
</noinclude><!--
-->{{minititle|Base}}
-->{{minititle|{{O BaseEntity/strings|Base}}}}
{{IO|OnUser1|to=OnUser4|These outputs each fire in response to the firing of the like-numbered <code>FireUser1</code> to <code>FireUser4</code> Input; see [[User Inputs and Outputs]].}}<!--
{{IO|{{O BaseEntity/strings|OnUser1To4}}|to=OnUser4|{{O BaseEntity/strings|OnUser1To4Desc}}}}<!--
-->{{#if:{{{l4d|}}}|<!--
-->{{#if:{{{l4d|}}}|<!--
-->{{IO|OnKilled|only={{l4d}}|This output fires when the entity is killed and removed from the game.}}| }}<!--
-->{{IO|{{O BaseEntity/strings|OnKilledL4D}}|only={{l4d}}|{{O BaseEntity/strings|OnKilledL4DDesc}}}}| }}<!--
-->{{#if:{{{s2|}}}|<!--
-->{{#if:{{{s2|}}}|<!--
-->{{IO|OnKilled|This output fires when the entity is killed and removed from the game. Parameter is the inflictor.}}| }}
-->{{IO|{{O BaseEntity/strings|OnKilledS2}}|{{O BaseEntity/strings|OnKilledS2Desc}}}}| }}

Revision as of 19:57, 13 August 2024

English (en)中文 (zh)Translate (Translate)

This template is our holder for all outputs that are assigned through CBaseEntity.

To add the OnKilled output, use {{O BaseEntity|l4d=1}}. This output is in the Left 4 Dead engine branch only, no other source 1 games.

For games on the Source 2 engine, use {{O BaseEntity|s2=1}}


Base:

to OnUser4
These outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.