[UDMF] Line Portals and Sound

Mon Nov 22, 2021 6:18 am


I am currently working on a mutli-story building. I have connected the individual floors through staircases and line portals, using "156 - Set Line Portal".
What I have noticed when placing enemies is that sound does not travel through the portals. When a monster shoots on one side of the portal, you do not hear the shot on the other side.

I figured that this is a limitation of how those portals work. I just want to make sure though if there is any way to solve this, or if I have to rethink the way I connect parts of the map.

Re: [UDMF] Line Portals and Sound

Mon Nov 22, 2021 12:17 pm

If you set your portals to be the static type, then sounds travel across the portal. There are other considerations with this type, but I think it is the only type that allows sounds to work in the way that you want. See Line_SetPortal for details.

Re: [UDMF] Line Portals and Sound

Wed Nov 24, 2021 1:47 pm

Thank you very much!
I have tested static wall portals and so far they do exactly what I want from them.