Attach 3D MidTex
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.
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.
-
- Posts: 21
- Joined: Wed Feb 16, 2022 9:04 pm
- Graphics Processor: nVidia with Vulkan support
Attach 3D MidTex
Hello, I would like to create an railing where you can shoot through it, but it blocks movement and it can be jumped over. I believe attach 3D Mid Tex could be a solution, but there's no good tutorials or explanations on it. I've tried other methods, but none work how they need to.
-
-
- Posts: 26539
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Re: Attach 3D MidTex
Are you doing this in UDMF mode?
If so, create a 2 sided line with your railing texture on it and set these flags:
That will create a line that blocks like an impassable line, but only for the height of the texture. The "Walkable middle texture" flag is also available in Hexen mode but a line with only that flag will block projectiles. Adding the "Projectile shoot-though middle texture" flag allows projectiles through too, so the texture behaves much like a standard impassable line as far as what it blocks is concerned.
If you also set "Lower unpegged" the texture will automatically sit at floor level, or you can just move it down using side-def offsets.
If so, create a 2 sided line with your railing texture on it and set these flags:
That will create a line that blocks like an impassable line, but only for the height of the texture. The "Walkable middle texture" flag is also available in Hexen mode but a line with only that flag will block projectiles. Adding the "Projectile shoot-though middle texture" flag allows projectiles through too, so the texture behaves much like a standard impassable line as far as what it blocks is concerned.
If you also set "Lower unpegged" the texture will automatically sit at floor level, or you can just move it down using side-def offsets.
-
-
- Posts: 17903
- Joined: Fri Jul 06, 2007 3:22 pm
Re: Attach 3D MidTex
"Attaching" is only useful if you're planning on having sector movement, e.g. creating an elevator.
-
-
- Posts: 26539
- Joined: Tue Jul 15, 2003 4:58 pm
- Location: Scotland
Re: Attach 3D MidTex
And to add to that, if you do want the texture to move with the floor, setting the lower unpegged flag does that too.
-
- Posts: 21
- Joined: Wed Feb 16, 2022 9:04 pm
- Graphics Processor: nVidia with Vulkan support
Re: Attach 3D MidTex
Wow a lot simpler than I thought, the lower unpegged thing is good advice.