[UDMF] Line Portals and Sound

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

[UDMF] Line Portals and Sound

Postby FFFFRRRR » Mon Nov 22, 2021 6:18 am

Hello.

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.
User avatar
FFFFRRRR
🍋🍋🍋🍋
 
Joined: 04 Nov 2017

Re: [UDMF] Line Portals and Sound

Postby Enjay » 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.
User avatar
Enjay
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
 
 
 
Joined: 15 Jul 2003
Location: Scotland

Re: [UDMF] Line Portals and Sound

Postby FFFFRRRR » 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.
User avatar
FFFFRRRR
🍋🍋🍋🍋
 
Joined: 04 Nov 2017


Return to Mapping

Who is online

Users browsing this forum: No registered users and 0 guests