Generic Keyvalues, Inputs and Outputs/Outputs: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(Add an option for Source 2 games to include OnKilled with a new description and no L4D warning) |
||
Line 2: | Line 2: | ||
This template is our holder for all [[outputs]] that are assigned through {{ent|CBaseEntity}}. | This template is our holder for all [[outputs]] that are assigned through {{ent|CBaseEntity}}. | ||
To add the <code>OnKilled</code> output, | To add the <code>OnKilled</code> output, use {{Code|<nowiki>{{O BaseEntity|l4d=1}}</nowiki>}}. This output is in the [[Left 4 Dead (engine branch)|Left 4 Dead engine branch]] '''only''', no other source 1 games. | ||
For games on the Source 2 engine, use {{Code|<nowiki>{{O BaseEntity|s2=1}}</nowiki>}} | |||
[[Category:Output Templates|BaseEntity]] | [[Category:Output Templates|BaseEntity]] | ||
Line 10: | Line 12: | ||
{{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|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]].}}<!-- | ||
-->{{#if:{{{l4d|}}}|<!-- | -->{{#if:{{{l4d|}}}|<!-- | ||
-->{{IO|OnKilled|only={{l4d}}|This output fires when the entity is killed and removed from the game.}}| }} | -->{{IO|OnKilled|only={{l4d}}|This output fires when the entity is killed and removed from the game.}}| }}<!-- | ||
-->{{#if:{{{s2|}}}|<!-- | |||
-->{{IO|OnKilled|This output fires when the entity is killed and removed from the game. Parameter is the inflictor.}}| }} |
Revision as of 11:20, 19 June 2024
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:
- OnUser1 to OnUser4
- These outputs each fire in response to the firing of the like-numbered
FireUser1
toFireUser4
Input; see User Inputs and Outputs.