target_cdaudio Last edited 2 months ago2022-09-16 08:11:41 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

ValueTrack (or action)
-1Stop
1None
2Half-Life01.mp3
3Prospero01.mp3
4Half-Life12.mp3
5Half-Life07.mp3
6Half-Life10.mp3
7Suspense01.mp3
8Suspense03.mp3
9Half-Life09.mp3
10Half-Life02.mp3
11Half-Life13.mp3
12Half-Life04.mp3
13Half-Life15.mp3
14Half-Life14.mp3
15Half-Life16.mp3
16Suspense02.mp3
17Half-Life03.mp3
18Half-Life08.mp3
19Prospero02.mp3
20Half-Life05.mp3
21Prospero04.mp3
22Half-Life11.mp3
23Half-Life06.mp3
24Prospero03.mp3
25Half-Life17.mp3
26Prospero05.mp3
27Suspense05.mp3
28Suspense07.mp3
29gamestartup.mp3
30None

Flags

Notes

3 Comments

Commented 13 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 10 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 5 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.

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