VERY uncooperative music files
What Is it that makes it work for everyone else?
I remember these advises by my dear friend Neco:
*Create your own 'rectangular' soundscape areas using trigger_multiples replacing the env_soundscape entities.
Create your own fade-in/fade-out logic_relays and let them trigger your desired sound files when 'start_touching' or 'end_touching' the area defined by the trigger_multiple.
The trigger_multiple method also has also the advantage to be exactly a large as the room if desired.*
Anyway, I guess there are some sounds that will only be stopped right when the music file has been completely played... So I'd suggest you to make sure that you don't have like 10 sound files being played at the same time... only a couple of them or 3, and to make sure they are played in big areas so you give time enough to the sound to finish playing whle the player is in another area...
For an explanation about the flags, see https://developer.valvesoftware.com/wik ... nt_generic
About the fading times: When you have set a Fade-out-time of 4 seconds in the music's options and pass a trigger that wants to fade out this music in only 3 seconds you get an error and the music continues. It has to be the same value.
Also, you should definitey look at the "special needs" of ambient_generic entities. Several bugs there. Zivi posted the link.
MasterLagger wrote:
Make sure the "Is NOT Looped" flag is checked. Some music loops on it's own even with the "Is NOT Looped" flag is checked. When "Is NOT Looped" flag is not checked, the music becomes uncontrollable. Hope this helps.
OH FOR GOD'S SAKE!!! D:<
MasterLagger wrote:
I believe I just hit a nerve. Not to make things worse, but your emotion-icon is facing the wrong way. slowly backs away
ahaha.. MasterLagger you crack me up
So, in general, in every area you want to play certain music you should create ambient_generic to play music and trigger_multiple to trigger music to start and stop. In ambient_generic properties uncheck Is NOT Looped flag, name it for example music_1 and choose music file you want also you can set fade-in and fade-out time. For trigger's outputs enter OnStartTouch / music_1 / PlaySound and OnEndTouch / music_1 / StopSound. Do the same in other areas with different names of cause.
I attached .vmf and .bsp files for you to check how to do it and how it works. I hope it will help.
EDIT: I forgot to read page 2 of this thread before posting this. I guess I was using a song that could not be stopped.
Thank you for the information