Target cdaudio (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (→‎Keyvalues: confirm)
(Move to main page; only used rarely in source)
Tag: New redirect
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{distinguish|trigger_cdaudio}}
#REDIRECT [[Target_cdaudio]]
{{GoldSource base point|target_cdaudio}}
 
==Entity description==
Plays a specified track either on the CD or in the media folder when the player walks through 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|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.}}
:{| class=standard-table
! Value || MP3 file to play
|-
| <code>1</code> || <code><None></code>
|-
| <code>2</code> || Half-Life01.mp3
|-
| <code>3</code> || Prospero01.mp3
|-
| <code>4</code> || Half-Life12.mp3
|-
| <code>5</code> || Half-Life07.mp3
|-
| <code>6</code> || Half-Life10.mp3
|-
| <code>7</code> || Suspense01.mp3
|-
| <code>8</code> || Suspense03.mp3
|-
| <code>9</code> || Half-Life09.mp3
|-
| <code>10</code> || Half-Life02.mp3
|-
| <code>11</code> || Half-Life13.mp3
|-
| <code>12</code> || Half-Life04.mp3
|-
| <code>13</code> || Half-Life15.mp3
|-
| <code>14</code> || Half-Life14.mp3
|-
| <code>15</code> || Half-Life16.mp3
|-
| <code>16</code> || Suspense02.mp3
|-
| <code>17</code> || Half-Life03.mp3
|-
| <code>18</code> || Half-Life08.mp3
|-
| <code>19</code> || Prospero02.mp3
|-
| <code>20</code> || Half-Life05.mp3
|-
| <code>21</code> || Prospero04.mp3
|-
| <code>22</code> || Half-Life11.mp3
|-
| <code>23</code> || Half-Life06.mp3
|-
| <code>24</code> || Prospero03.mp3
|-
| <code>25</code> || Half-Life17.mp3
|-
| <code>26</code> || Prospero05.mp3
|-
| <code>27</code> || Suspense05.mp3
|-
| <code>28</code> || Suspense07.mp3
|-
| <code>29</code> || gamestartup.mp3
|-
|}
{{note|Track 29 or <code>gamestartup.mp3</code> 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|trigger_cdaudio}}
 
[[Category:Half-Life]]
[[Category:Half-Life Entities]]
[[Category:Level Design]]

Latest revision as of 10:18, 4 June 2023

Redirect to: