by Gez » Fri Jan 20, 2017 22:38
There are several methods available.
1. Strife style: put the [wiki]GlassBreak[/wiki] special on the line, define the window's "intact" and "broken" textures as a switch in ANIMDEFS, provide sprites for the glass shards.
2. Hexen style: set the intact texture as the lower texture (or upper), the broken texture as the middle, put a map spot, and have the line special run a script when hit, which will perform instant lower (or raise), play a glass break sound, and spawn a bunch of glass shards at the map spot. You need the sector behind the glass to be "closed" originally so it won't work with translucent glass.
3. ZDoom style: set the line to run a script when hit that will make the line non-blocking, play a glass break sound, change the texture to the broken glass one, and spawn glass shards like in Hexen style.
My advice is to look at maps where the effect happens in a map editor and see how they did it. Know that you can probably improve on it, too.
There are several methods available.
1. Strife style: put the [wiki]GlassBreak[/wiki] special on the line, define the window's "intact" and "broken" textures as a switch in ANIMDEFS, provide sprites for the glass shards.
2. Hexen style: set the intact texture as the lower texture (or upper), the broken texture as the middle, put a map spot, and have the line special run a script when hit, which will perform instant lower (or raise), play a glass break sound, and spawn a bunch of glass shards at the map spot. You need the sector behind the glass to be "closed" originally so it won't work with translucent glass.
3. ZDoom style: set the line to run a script when hit that will make the line non-blocking, play a glass break sound, change the texture to the broken glass one, and spawn glass shards like in Hexen style.
My advice is to look at maps where the effect happens in a map editor and see how they did it. Know that you can probably improve on it, too.