Trigger cdaudio (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
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 the player walks through this entity.


{{Note|The mp3 files loaded, and what number they are used as in this entity is hard-coded into the game. 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.}}


== Keyvalues ==
== Keyvalues ==


{{KV|Name|string|The name of the entity.}}
{{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
== Flags ==
! Value || Mp3 file to play
 
|-
* 1 : Wait Till Seen
| <code>1</code> || <code><None></code>
* 2 : Gag (No IDLE sounds until angry)
|-
* 4 : MonsterClip
| <code>2</code> || Half-Life01.mp3
* 8 : No wreckage
|-
* 16 : Prisoner
| <code>3</code> || Prospero01.mp3
* 64 : Start inactive
|-
* 128 : Wait for script
| <code>4</code> || Half-Life12.mp3
* 256 : Pre-disaster
|-
* 512 : Fade corpse
| <code>5</code> || Half-Life07.mp3
* 2048 : Not in Deathmatch (some entities don't have this set in their FGD, but it works for all entities if set).
|-
| <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-Life15.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}}


[[Category:Half-Life]]
[[Category:Half-Life]]

Revision as of 02:46, 1 April 2015

Half-Life trigger_cdaudio is a brush entity available in Half-Life.

Entity description

Plays a specified track either on the CD or in the media folder when the player walks through this entity.

Note.pngNote: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

Track ([todo internal name (i)]) <integer>
The name of the track to play via the media folder.
Value Mp3 file to play
1 <None>
2 Half-Life01.mp3
3 Prospero01.mp3
4 Half-Life12.mp3
5 Half-Life07.mp3
6 Half-Life10.mp3
7 Suspense01.mp3
8 Suspense03.mp3
9 Half-Life09.mp3
10 Half-Life02.mp3
11 Half-Life13.mp3
12 Half-Life04.mp3
13 Half-Life15.mp3
14 Half-Life15.mp3
15 Half-Life16.mp3
16 Suspense02.mp3
17 Half-Life03.mp3
18 Half-Life08.mp3
19 Prospero02.mp3
20 Half-Life05.mp3
21 Prospero04.mp3
22 Half-Life11.mp3
23 Half-Life06.mp3
24 Prospero03.mp3
25 Half-Life17.mp3
26 Prospero05.mp3
27 Suspense05.mp3
28 Suspense07.mp3
Name (targetname) <string>
The targetname that other entities refer to this entity by.