target_cdaudio Last edited 6 months ago2024-05-23 05:47:50 UTC

target_cdaudio - Point Entity

This entity allows you to play a specific CD track when the player is within the specified radius around the entity or when triggered. A brush entity equivalent is available as trigger_cdaudio.
Deathmatch Classic specific notice
This entity (and trigger_cdaudio) does not work in Deathmatch Classic.

Attributes

Value Track (or action)
-1 Stop
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
Value Track (or action)
11 Half-Life13.mp3
12 Half-Life04.mp3
13 Half-Life15.mp3
14 Half-Life14.mp3
15 Half-Life16.mp3
16 Suspense02.mp3
17 Half-Life03.mp3
18 Half-Life08.mp3
19 Prospero02.mp3
20 Half-Life05.mp3
Value Track (or action)
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
29 gamestartup.mp3
30 None

Flags

Notes

4 Comments

Commented 15 years ago2009-08-29 01:23:37 UTC Comment #101125
You can replace the original half-life mp3s with your own, by finding/making some mp3s and dropping them in the Valve\Media directory!

They can be a bit buggy tho--at least for me--, so here are some problems/fixes regarding custom target_cdaudio mp3s:

Problem:i'm trying to replace the mp3s with my own for target_cdaudio entity, but half-life overwrites them when i play the game, and plays the originals and not mine own.

fix: After you copy/rename--(half-life01, half-life02, etc) your own mp3 to the half-life media directory, make them read-only, and they should not be overwritten by the originals from the gcf file.
***

Problem: I've renamed my own mp3 track to the proper filename--"half-life03.mp3" or whatev--, and i've made it a read-only file as well, but when i try to trigger it, STILL, some other song comes on?!

fix: fsr, at least for me, half-life renames your tracks in that, when you call on your file, say "half-life03", you would actually have to call up "half-life022" to make your custom song play.

The only way i know of to figure what HL has renamed your file to, is to create a test map of all 30 possible target_cdaudio sounds, with buttons, and go around clicking until you find your right file. THEN, you can enter the proper filename and your song will play.

Good news is it's static, once you figure out what it is, it should never change unless you delete it.
***

Problem: You've done all of the above, but none of the buttons activate your custom track?!

fix: check the button targets and track numbers for your cdaudio "test file" and make sure everything is correct. (I have a test map and will upload it shortly, if anyone ever needs it)
***

Problem: custom target_cdaudio: custom mp3s aren't playing, even though every other conceivable thing looks correct.

Fix: Try restarting steam. Sometimes, track changes will not execute unless you restart.
***

)

Commented 12 years ago2012-01-30 05:16:38 UTC Comment #101126
^The above comment only applies to Steam HL. WON HL does not support mp3 files, only audio CDs.

I suppose you could place your own audio CD and it would still play. starts playing HL with Barry White soundtrack
Commented 7 years ago2017-11-22 23:05:07 UTC Comment #101127
The entity can only be used once. It kills itself automatically after it
starts playing.
Commented 8 months ago2024-03-10 16:35:32 UTC Comment #106056
Fun fact: Track 1 is unassigned because on the original HL CD track 1 is the data part of the CD. Track 1 is Half-Life.

You must log in to post a comment. You can login or register a new account.