CD music won't stop playing Created 16 years ago2007-12-24 01:39:20 UTC by srry srry

Created 16 years ago2007-12-24 01:39:20 UTC by srry srry

Posted 16 years ago2007-12-24 01:39:20 UTC Post #241835
I used a trigger_cdaudio to turn some Half-Life music on in a map, and then another one to stop it from playing, but when the next map loads the music starts up again, and won't stop, even if I've placed another trigger_cdaudio in to make it stop. The music also loops indefinitely, which I find strange. This is in Steam's Half-Life, by the way.
Posted 16 years ago2007-12-24 02:58:00 UTC Post #241841
What's the map properties? Like cd track to play? That have anything to do with it?
Tetsu0 Tetsu0Positive Chaos
Posted 16 years ago2007-12-24 09:28:30 UTC Post #241846
Yeah, I tried both ways of starting the music: Through the map properties as you mentioned, and using a trigger_cdaudio. They both behaved the same. :
Posted 16 years ago2007-12-24 13:10:41 UTC Post #241859
crap man, i'm out of ideas :
Tetsu0 Tetsu0Positive Chaos
Posted 16 years ago2007-12-24 15:14:25 UTC Post #241863
No idea here either. Post the ent setup in the problem vault.
Daubster DaubsterVault Dweller
Posted 16 years ago2007-12-24 17:05:48 UTC Post #241866
Sorry, I'm not posting the maps, they're part of my mod. I've told you everything about the setup, and there's not much to it...trigger_cdaudio has only two properties. I've used one entity to turn on track 24, and the other is set to "stop".

Maybe I'll decompile a Half-Life map later and see if they did it differently.

Edit: Okay, I think I might know what it is. The player is teleported into a dark box before the level changes, and is standing inside the trigger_cdaudio (the one that's supposed to turn the song off) when the change occurs. Maybe that has something to do with it, I don't know. Also, when the map starts, the player is immediately spawned inside the trigger_cdaudio that makes the music start. That might cause the looping, so I'll try triggering it with a trigger_auto one second after the level starts.These are complete guesses, but who knows.

Edit 2: Well, my sound is still continuing into the following map after the level change, but that fixed the looping problem at least. :
You must be logged in to post a response.