Shoot over and under breakable mid texture?

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.
User avatar
Hipshot
Posts: 49
Joined: Wed Feb 03, 2016 1:45 pm

Shoot over and under breakable mid texture?

Post by Hipshot »

I'm sure this has been asked before and when I search I get various ideas about this, mostly old outdated things it seems (as far as I can see?)

I'm using UDMF and Latest UDE.

I have a mid texture glass railing material that I want to break, but I have a hard time figuring out how to NOT trigger this when shooting above or below the mid texture.

script "railing1dst" (int LineID) { SetLineTexture(LineID,SIDE_FRONT,TEXTURE_MIDDLE,"textures/railing1_dst.png"); SetLineTexture(LineID,SIDE_BACK,TEXTURE_MIDDLE,"textures/railing1_dst.png"); }

These are the line settings: https://i.ibb.co/pf9fG1n/image.png

Maybe, if no one can post the solution, maybe point me to a map that solves this? If possible...
User avatar
axredneck
Posts: 391
Joined: Mon Dec 11, 2017 2:09 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Arch
Graphics Processor: nVidia with Vulkan support
Location: Russia

Re: Shoot over and under breakable mid texture?

Post by axredneck »

Try to make the glass an actor instead of midtexture. Hacx has such glass if i remember correctly.
User avatar
Hipshot
Posts: 49
Joined: Wed Feb 03, 2016 1:45 pm

Re: Shoot over and under breakable mid texture?

Post by Hipshot »

Actors are not really a solution, the collision shapes makes it all very difficult to use for this I think. Maybe I'll just make a regular railing w/o the glass.

Return to “Mapping”