Trigger cdaudio (GoldSrc): Difference between revisions
Jump to navigation
Jump to search
Note:The MP3 files loaded, and what number they are used as in this entity are hard-coded into the game, except in
. 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.
Note:Track 29 or
SirYodaJedi (talk | contribs) m (Clean) |
SirYodaJedi (talk | contribs) m (→Keyvalues: confirm) |
||
| Line 13: | Line 13: | ||
:* 0: No | :* 0: No | ||
:* 1: Yes | :* 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.}} | {{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.}} | ||
Revision as of 13:05, 29 May 2023
Not to be confused with target_cdaudio.
Todo: The deprecated template
{{Base brush}}, {{Brush ent}} or {{Tf2 brush}} (and similar) was used. Use {{Entity}} instead.
trigger_cdaudio is a brush entity available in all GoldSrc engine games.
Entity description
Plays a specified track either on the CD or in the media folder when the player walks through this entity.
Keyvalues
- TrackName ([todo internal name (i)]) <string> (only in
) - The path of the MP3 track to play, relative to the base mod directory.
- Loop ([todo internal name (i)]) <choices> (only in
) - Whether the track should loop. Default is "No".
- 0: No
- 1: Yes
Confirm:Broken in current Steam release?
- Track ([todo internal name (i)]) <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.
Value Mp3 file to play 1<None>2Half-Life01.mp33Prospero01.mp34Half-Life12.mp35Half-Life07.mp36Half-Life10.mp37Suspense01.mp38Suspense03.mp39Half-Life09.mp310Half-Life02.mp311Half-Life13.mp312Half-Life04.mp313Half-Life15.mp314Half-Life14.mp315Half-Life16.mp316Suspense02.mp317Half-Life03.mp318Half-Life08.mp319Prospero02.mp320Half-Life05.mp321Prospero04.mp322Half-Life11.mp323Half-Life06.mp324Prospero03.mp325Half-Life17.mp326Prospero05.mp327Suspense05.mp328Suspense07.mp329gamestartup.mp330<None>
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.- Name (targetname) <string>
- The targetname that other entities refer to this entity by.