Glass which breaks -solved-

Avatar
Brainstone
401 Posts
Posted Nov 10, 2011
Heya guys, thank you for your help with my last problem. :thumbup: I got the map transition to work now, even with loading screens. Now I want to create a glass panel, which breaks. There is already one in the instances, but that breaks when touched by physics objects like turrets or boxes.

I want a panel, which breaks:
a. When an exploding futbol is shot at it
b. When it is shot multiple times by a turret

NOT, when you throw physic objects at it.
I know how to make physboxes or prop_dynamics for the glass. My main problem is more to find out, whether this is possible and which trigger I should use for this.

Advertisement
Registered users don’t see ads! Register now!
Avatar
beecake
484 Posts
Posted Nov 10, 2011
Replied 32 minutes later
Use:
Func_brush as the visible wall. Call it ex. "brush"

Func_breakable as the invisible wall (With invisible texture)

Make the breakable the same place as the func_brush.

Then give the breakable the outputs: OnBreak; brush; kill

Experiment with the settings on the breakable

Avatar
spongylover123
944 Posts
Posted Nov 10, 2011
Replied 49 minutes later

http://developer.valvesoftware.com/wiki/Breakable_Glass
Try here, it may be for hl2 but same concept

Avatar
LittleLui
14 Posts
Posted Nov 11, 2011
Replied 12 hours later

beecake wrote:
Then give the breakable the outputs: OnBreak; brush; kill

for extra fun, you could spawn a few glass shards (prop_dynamic), there are a few models available, and although they don't look exactly the same as the non-broken glass, it might look reasonably convincing. I'm currently working on a map where i do exactly that.

Avatar
ChickenMobile
2,460 Posts
Posted Nov 11, 2011
Replied 3 hours later

spongylover123 wrote:
http://developer.valvesoftware.com/wiki/Breakable_Glass
Try here, it may be for hl2 but same concept

Yes I was going to say that there was a func_breakable_surf that made glass looked like it breaks. Is it in portal?

Avatar
spongylover123
944 Posts
Posted Nov 11, 2011
Replied 40 minutes later

chickenmobile wrote:
spongylover123 wrote:

http://developer.valvesoftware.com/wiki/Breakable_Glass
Try here, it may be for hl2 but same concept

Yes I was going to say that there was a func_breakable_surf that made glass looked like it breaks. Is it in portal?

Technically portal uses hl2 so I guess it is, maybe

Avatar
Brainstone
401 Posts
Posted Nov 11, 2011
Replied 2 hours later
Thank you, I've got it.
I could submit the vmf if someone wants it. The glass doesn't break with phyisic subjects, but with turret bullets and bombs.
Avatar
gamecreator
14 Posts
Posted Nov 11, 2011
Replied 1 hour later
I wouldn't mind having this in my arsenal, if you could share it. Thanks!
Avatar
Brainstone
401 Posts
Posted Nov 11, 2011
Replied 5 hours later
Voil?:
Attachments
glasspanel192x128_Brainstone.vmf
0.00 MB 65 downloads
Avatar
Spam Nugget
492 Posts
Posted Nov 12, 2011
Replied 7 hours later
thats kinda awesome, and just saying but you know theres actually a valve instance for this?
Avatar
beecake
484 Posts
Posted Nov 12, 2011
Replied 15 minutes later

Spam Nugget wrote:
thats kinda awesome, and just saying but you know theres actually a valve instance for this?

Yes but it breaks if a cube, Ball etc. Hits it

Avatar
Spam Nugget
492 Posts
Posted Nov 12, 2011
Replied 3 hours later
yeah but it aint that hard to open it up, change the flags on the trigger and save under a new name?
Avatar
beecake
484 Posts
Posted Nov 12, 2011
Replied 46 minutes later

Spam Nugget wrote:
yeah but it aint that hard to open it up, change the flags on the trigger and save under a new name?

No you are right :wink:

Advertisement
Registered users don’t see ads! Register now!
Avatar
Brainstone
401 Posts
Posted Nov 12, 2011
Replied 22 minutes later
Like mentioned in my first post, I knew that there's a valve instance, but that was almost invisible. I could hardly see the glass panel when placing this one in my map. Also, in my instance the glass cracks and after breaking the fractures lay on the floor.