Trigger cdaudio (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(See target_cdaudio log)
Tag: New redirect
 
Line 1: Line 1:
{{distinguish|target_cdaudio|desc1=the point entity}}
#REDIRECT [[Trigger_cdaudio]]
{{entity|type=brush|engine=gldsrc|trigger_cdaudio|sprite=ambient generic.png}}
It plays a specified track either on the CD or in the media folder when the player walks through this entity.
{{clr}}{{Note|The [[MP3]] files loaded, and what number they are used as in this entity are hard-coded into the game, except in {{czds}}. Therefore, the filenames of custom MP3s must be very specific.}}
{{Note|In early retail (WON) versions of the game, only CD Audio support was support. Later WON versions added undocumented MP3 playback which was used in the Steam release.}}
 
== Keyvalues ==
{{KV|TrackName|string|only={{czds}}|The path of the [[MP3]] track to play, relative to the base mod directory.}}
{{KV|Loop|choices|only={{czds}}|Whether the track should loop. Default is "No".
:* 0: No
:* 1: Yes
:{{modernConfirm|Broken in current Steam release?}}
}}
{{KV|Track|integer|The name of the track to play via the media folder OR the CD-track number if a red book audio cd is available.}}
:{| class=standard-table
! Value || Mp3 file to play
|-
| {{mono|1}} || {{mono|<None>}}
|-
| {{mono|2}} || {{mono|Half-Life01.mp3}}
|-
| {{mono|3}} || {{mono|Prospero01.mp3}}
|-
| {{mono|4}} || {{mono|Half-Life12.mp3}}
|-
| {{mono|5}} || {{mono|Half-Life07.mp3}}
|-
| {{mono|6}} || {{mono|Half-Life10.mp3}}
|-
| {{mono|7}} || {{mono|Suspense01.mp3}}
|-
| {{mono|8}} || {{mono|Suspense03.mp3}}
|-
| {{mono|9}} || {{mono|Half-Life09.mp3}}
|-
| {{mono|10}} || {{mono|Half-Life02.mp3}}
|-
| {{mono|11}} || {{mono|Half-Life13.mp3}}
|-
| {{mono|12}} || {{mono|Half-Life04.mp3}}
|-
| {{mono|13}} || {{mono|Half-Life15.mp3}}
|-
| {{mono|14}} || {{mono|Half-Life14.mp3}}
|-
| {{mono|15}} || {{mono|Half-Life16.mp3}}
|-
| {{mono|16}} || {{mono|Suspense02.mp3}}
|-
| {{mono|17}} || {{mono|Half-Life03.mp3}}
|-
| {{mono|18}} || {{mono|Half-Life08.mp3}}
|-
| {{mono|19}} || {{mono|Prospero02.mp3}}
|-
| {{mono|20}} || {{mono|Half-Life05.mp3}}
|-
| {{mono|21}} || {{mono|Prospero04.mp3}}
|-
| {{mono|22}} || {{mono|Half-Life11.mp3}}
|-
| {{mono|23}} || {{mono|Half-Life06.mp3}}
|-
| {{mono|24}} || {{mono|Prospero03.mp3}}
|-
| {{mono|25}} || {{mono|Half-Life17.mp3}}
|-
| {{mono|26}} || {{mono|Prospero05.mp3}}
|-
| {{mono|27}} || {{mono|Suspense05.mp3}}
|-
| {{mono|28}} || {{mono|Suspense07.mp3}}
|-
| {{mono|29}} || {{mono|gamestartup.mp3}}
|-
| {{mono|30}} || {{mono|<None>}}
|-
|}
{{note|Track 29 or {{mono|gamestartup.mp3}} will automatically play upon game launching into the main menu, and will loop and continue to play until another music track is called or a mulitplayer server is loaded.}}
{{Hl1_kv_targetname}}
 
==See also==
* {{ent|target_cdaudio}}, a point entity used for the same purpose
 
[[Category:Half-Life]]
[[Category:Half-Life Entities]]
[[Category:Level Design]]

Latest revision as of 10:20, 4 June 2023

Redirect to: