Trigger cdaudio (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(gamestartup.mp3 and link to point entity)
(See target_cdaudio log)
Tag: New redirect
 
(18 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{HL1}} '''trigger_cdaudio''' is a brush entity available in [[Half-Life]].
#REDIRECT [[Trigger_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. Therefore, the filenames of custom mp3s must be very specific.}}
 
== Keyvalues ==
 
{{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
|-
| <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. {{confirm|Does loading a mulitplayer server also always stop the track?}}}}
{{Hl1_kv_targetname}}
==See also==
* {{ent|target_cdaudio}}
 
[[Category:Half-Life]]
[[Category:Half-Life Entities]]
[[Category:Level Design]]

Latest revision as of 10:20, 4 June 2023

Redirect to: