Breakable glass [HOW?]
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Breakable glass [HOW?]
Uh, sorry to be stupid.
How exactly do I make "breakable glass" ? Can it still be translucent?
How exactly do I make "breakable glass" ? Can it still be translucent?
Create a 2-sided line, but set it to Block Everything and activate on Impact. Give it the TranslucentLine special, making sure to set the 1st argument (LineID) to a unique number. In an open script, use the SetLineSpecial function to change the line's special to ACS_Execute. In the script it executes, play a glass break sound, change the line's texture to a broken-glass texture, spawn a few glass shards, and use SetLineBlocking to make the line block nothing.
- Ultraviolet
- Posts: 1152
- Joined: Tue Jul 15, 2003 9:08 pm
- Location: PROJECT DETAILS CLASSIFIED.
Re: Breakable glass [HOW?]
BLASPHEMERellmo wrote:I'm Shodan
Yes.Nanami wrote:Doesn't it come with Hexen's stained glass shards too?
If you want a simple example of a shattering glass mirror go to this site:
http://members.lycos.co.uk/Enjay001/
Scroll down to the file that says "A Smashable Mirror For Zdoom" (about 3/4 of the way down the page. There are other example files for a variety of stuff there, but quite a lot has been superceded by improvments in Zdoom.
Or you could download my "Marine Assault" level for a really smashing time (mainly windows and computers).
Also, the Hexen rocks and dirt clumps can be spawned for adding to earthquake effects and so on - or used for something else entirely.
Yeah, get Enjay's Marine Assault. I loved that map, Enjay. The whole thing was amazing. An animated briefing, the terminator theme as you wreak havoc and destruction, new bad guys, railgun, new textures.... Brilliant beyond belief. I don't believe it didn't get onto Doomworld's top 100 wads feature...
There's an example of breakable glass in this very old demo wad. Today it's not really anything special anymore, but back when I made it it was pretty impressive (I think
)

That will be very helpful.Enjay wrote: If you want a simple example of a shattering glass mirror go to this site:
http://members.lycos.co.uk/Enjay001/
Thanks.
Be aware of a new project coming soon...