Commentary auto: Difference between revisions
Jump to navigation
Jump to search

(Fixed a few inaccuracies and added an example) |
m (Added the page to categories) |
||
Line 22: | Line 22: | ||
{{IO|OnCommentaryMidGame|Fired when commentary is enabled in the middle of a map.}} | {{IO|OnCommentaryMidGame|Fired when commentary is enabled in the middle of a map.}} | ||
{{IO|OnCommentaryMultiplayerSpawn|Fired when <code>MultiplayerSpawned</code> is sent to this entity.}} | {{IO|OnCommentaryMultiplayerSpawn|Fired when <code>MultiplayerSpawned</code> is sent to this entity.}} | ||
[[Category: Source Base Entities]][[Category: Point Entities]][[Category: Entities]] |
Revision as of 11:13, 13 May 2019


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. This entity is similar to logic_auto's role in firing outputs when the map is loaded, firing outputs when the developer commentary system is loaded. It will only function when used inside of a commentary file, but it does not appear to be available in the Commentary Editor directly and it is not available in any FGDs. The only known way to implement it is by directly defining it in the commentary file via a text editor. See Commentary System for more information on how this system works.
Example
entity { "classname" "commentary_auto" "origin" "0 0 1024" "connections" { "OnCommentaryNewGame" "remove_in_commentary,Kill,,0,-1" "OnCommentaryMidGame" "remove_in_commentary,Disable,,0,-1" "OnCommentaryMidGame" "remove_in_commentary,TurnOff,,0,-1" } }
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.