Admittedly, this is gonna sound rather specific, but I can't imagine accomplishing it without some serious hacks. Even so I wouldn't know what hack to use.
Anyway. Is it possible to have AmbientSound actors who's sound does not pass through line & floor/ceiling portals?
In my case I have a map which uses a lot of portals and some ambient sounds. Problem is those same ambient sounds are heard in areas they are not supposed to be heard. That's mostly because the different portal group areas overlap. And while it's fine with me that monster sounds might be heard, it is absolutely not fine for ambient sounds.
So rather than having to choose between portals or ambient sounds I made this feature suggestion mostly out of foolhardy desperation.
Something like having AmbientSound (and probably SoundSequence) actors have the INVISIBLE flag which tells the engine that whatever sound those actors are making should not travel through portals would be good enough for me. (Because those same portals are supposed to allow transmitting monster sounds from the other side.)
If there is a way to accomplish this via an existing method, I'm all ears.
As an example:
Start the test map, you should hear the imp's chatter on a loop. Walk all the way to the portal and cross it. On the other side, walk all the way to the tree. You should still hear the imp's chatter noise. This is what I want to avoid. (And yes, I'm using static portals.)
Ambient sounds which don't travel through portals
Moderator: GZDoom Developers
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49067
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Ambient sounds which don't travel through portals
The best way to deal with this is not some semi-functional automatic but selective activation and deactivation of the sound things in your map.
If you call Thing_Activate and Thing_Deactivate on ambient sounds they will be switched on and off.
If you call Thing_Activate and Thing_Deactivate on ambient sounds they will be switched on and off.
Re: Ambient sounds which don't travel through portals
Understood. I'll give it a go.
Um, might I ask why this isn't in Closed Feature Suggestions yet? (Not that I'm implying it should be.)
Um, might I ask why this isn't in Closed Feature Suggestions yet? (Not that I'm implying it should be.)