Breakable glass [HOW?]

Archive of the old editing forum
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.
User avatar
ellmo
Posts: 429
Joined: Thu Mar 04, 2004 9:21 am
Location: Poland - Poznan
Contact:

Breakable glass [HOW?]

Post by ellmo »

Uh, sorry to be stupid.

How exactly do I make "breakable glass" ? Can it still be translucent?
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

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.
User avatar
ellmo
Posts: 429
Joined: Thu Mar 04, 2004 9:21 am
Location: Poland - Poznan
Contact:

Post by ellmo »

Holy shit...

ZDoom has default glass shards, eh. In case I have further trouble, how do I spawn them, are they affected dy gravity by default?
GameArena
Posts: 182
Joined: Wed Jul 16, 2003 4:35 pm
Location: Outside of a bubble... Looking at all the humans inside.

Post by GameArena »

I was playing around and made some pretty impressive glass with more realistic physics (cracking from the point of impact and then shattering depending on the damage). Maybe I can talk Randy into adding it to Zdoom :) .
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49225
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

Try it. It sounds like a really cool feature.
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Post by Xaser »

ellmo wrote:ZDoom has default glass shards, eh. In case I have further trouble, how do I spawn them, are they affected dy gravity by default?
Actually, those are ice shards, which are used in the ice death of baddies.
User avatar
Sphagne
Posts: 513
Joined: Wed Jul 16, 2003 3:36 am

Post by Sphagne »

Change the pictures and sounds and they can be anything...
User avatar
Nanami
Posts: 1066
Joined: Tue Jul 15, 2003 5:13 pm
Location: That little island pritch created.
Contact:

Post by Nanami »

Doesn't it come with Hexen's stained glass shards too?
User avatar
Ultraviolet
Posts: 1152
Joined: Tue Jul 15, 2003 9:08 pm
Location: PROJECT DETAILS CLASSIFIED.

Re: Breakable glass [HOW?]

Post by Ultraviolet »

ellmo wrote:I'm Shodan
BLASPHEMER
User avatar
Enjay
 
 
Posts: 26955
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

Nanami wrote:Doesn't it come with Hexen's stained glass shards too?
Yes.

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.
Michty
Posts: 201
Joined: Tue Dec 16, 2003 2:35 pm
Location: My house, office, red seat, my body.

Post by Michty »

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...
boris
Posts: 773
Joined: Tue Jul 15, 2003 3:37 pm

Post by boris »

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 ;) )
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

I made breakable glass with plain Doom before. (well... it wasn't that convincing... and it was only one level... and any other switches also made shattering noises... but I thought it was pretty neat at the time.)
User avatar
ellmo
Posts: 429
Joined: Thu Mar 04, 2004 9:21 am
Location: Poland - Poznan
Contact:

Post by ellmo »

Enjay wrote: If you want a simple example of a shattering glass mirror go to this site:

http://members.lycos.co.uk/Enjay001/
That will be very helpful.

Thanks.

Be aware of a new project coming soon...
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49225
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

So what about DRD?
Locked

Return to “Editing (Archive)”