Commentary auto: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Removed orphan status.)
(updates)
Line 1: Line 1:
{{DISPLAYTITLE:commentary_auto}}
{{lang|Commentary auto}}
{{ent not in fgd|nolink=1}}
{{base point ep1|commentary_auto}} Similar to {{ent|logic_auto}}, this entity fires outputs for when the developer commentary system is loaded. It is not in any FGDs, and placing it directly in a map seems to not work correctly. See [[Commentary Editor]] for instructions on using the system.


{{stub}}
==Inputs==
{{IO|MultiplayerSpawned|Tell the <code>OnCommentaryMultiplayerSpawn</code> output to fire, for if the game is multiplayer.}}


'''commentary_auto''' is a [[point entity]] available in all games with the [[Commentary System]] implemented, including [[Half-Life 2: Episode One]] and [[Team Fortress 2]].
==Entity Description==
Fires outputs based on how commentary mode has been activated. Unlike [[logic_auto]], a similar entity, commentary_auto cannot read global states or remove itself after firing. This entity is not in the default FGD files for any of its games, nor does it appear to be an option in the [[Commentary Editor]]. Regardless, ''this entity only functions when used in a commentary file.''
==Outputs==
==Outputs==
* '''OnCommentaryNewGame'''
{{IO|OnCommentaryNewGame|Fired when a new game is started with commentary enabled.}}
: Fires when a new game is started with commentary enabled.
{{IO|OnCommentaryMidGame|Fired when commentary is enabled in the middle of a map.}}
* '''OnCommentaryMidGame'''
{{IO|OnCommentaryMultiplayerSpawn|Fired when <code>MultiplayerSpawned</code> is sent to this entity.}}
: Fires when commentary is enabled midgame.
* '''OnCommentaryMultiplayerSpawn'''
: {{todo}}
[[Category:Half-Life 2: Episode One Entities]]
[[Category:Team Fortress 2 Entities]]

Revision as of 05:58, 19 September 2018

English (en)Translate (Translate)
Icon-NotInFGD.png
This entity is not in the FGD by default.
It should not be put directly in a map.

Template:Base point ep1 Similar to logic_auto, this entity fires outputs for when the developer commentary system is loaded. It is not in any FGDs, and placing it directly in a map seems to not work correctly. See Commentary Editor for instructions on using the system.

Inputs

MultiplayerSpawned
Tell the OnCommentaryMultiplayerSpawn output to fire, for if the game is multiplayer.

Outputs

OnCommentaryNewGame
Fired when a new game is started with commentary enabled.
OnCommentaryMidGame
Fired when commentary is enabled in the middle of a map.
OnCommentaryMultiplayerSpawn
Fired when MultiplayerSpawned is sent to this entity.