Target 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 previous version of the game, such as the WON/Retail version, only CD Audio support was support. Later WON version added undocumented mp3 playback which was only later used in the Steam release.
Note:Track 29 or
SirYodaJedi (talk | contribs) m (link to MP3 page) |
SirYodaJedi (talk | contribs) m (Seems like both ents work for czeror) |
||
| Line 3: | Line 3: | ||
==Entity description== | ==Entity description== | ||
Plays a specified track either on the CD or in the media folder when the player walks through this entity. | |||
Plays a specified track either on the CD or in the media folder when this entity | {{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|The [[MP3]] files loaded, and what number they are used as in this entity are hard-coded into the game. Therefore, the filenames of custom mp3s must be very specific.}} | |||
{{Note|In previous version of the game, such as the WON/Retail version, only CD Audio support was support. Later WON version added undocumented mp3 playback which was only later used in the Steam release.}} | {{Note|In previous version of the game, such as the WON/Retail version, only CD Audio support was support. Later WON version added undocumented mp3 playback which was only later used in the Steam release.}} | ||
== Keyvalues == | == 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 | |||
}} | |||
{{KV|Track|integer|The name of the track to play via the media folder.}} | {{KV|Track|integer|The name of the track to play via the media folder.}} | ||
:{| class=standard-table | :{| class=standard-table | ||
Revision as of 13:01, 29 May 2023
Not to be confused with trigger_cdaudio.
Template:GoldSource base point
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
Value MP3 file to play 1<None>2Half-Life01.mp3 3Prospero01.mp3 4Half-Life12.mp3 5Half-Life07.mp3 6Half-Life10.mp3 7Suspense01.mp3 8Suspense03.mp3 9Half-Life09.mp3 10Half-Life02.mp3 11Half-Life13.mp3 12Half-Life04.mp3 13Half-Life15.mp3 14Half-Life14.mp3 15Half-Life16.mp3 16Suspense02.mp3 17Half-Life03.mp3 18Half-Life08.mp3 19Prospero02.mp3 20Half-Life05.mp3 21Prospero04.mp3 22Half-Life11.mp3 23Half-Life06.mp3 24Prospero03.mp3 25Half-Life17.mp3 26Prospero05.mp3 27Suspense05.mp3 28Suspense07.mp3 29gamestartup.mp3
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.