Target cdaudio (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Found that the Health value had to be set the exact same as the track value for any media song to play. Weird.)
(Move to main page; only used rarely in source)
Tag: New redirect
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{GoldSource base point|target _cdaudio}}
#REDIRECT [[Target_cdaudio]]
 
==Entity description==
 
Plays a specified track either on the CD or in the media folder when this entity is triggered.
 
{{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.}}
:{| 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
|-
|-
|}
{{Hl1_kv_targetname}}
{{KV|Health|float|The amount of health the entity has. (For some unknown reason, this entity only works when the Health key is also included, carrying the same value as the Track key for any media track to play ingame.)}}
 
[[Category:Half-Life]]
[[Category:Half-Life Entities]]
[[Category:Level Design]]

Latest revision as of 10:18, 4 June 2023

Redirect to: