Garry's Mod

Garry's Mod

933 ratings
Destructable Glass: Rewrite
4
3
3
2
2
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build, Fun
File Size
Posted
Updated
3.414 MB
29 Jul, 2022 @ 2:25pm
31 Jul, 2022 @ 11:03am
7 Change Notes ( view )

Subscribe to download
Destructable Glass: Rewrite

Description
"GLASS is an addon with fully procedural and randomly generated glass shards that leaves any user with great satisfaction!"

This is a mod that adds completely procedural glass to the game, you can find it in the spawnmenu in the entities tab under "Glass: Rewrite"

It also replaces func_breakable_surf (glass entity used in most half life maps), so feel free to play half life with alyx style glass!

Note: This addon may lag a lot, source vphysics was never meant to handle a large pile of objects, I tried my best to make it lag friendly, but you shouldn't expect perfection

I also suggest uninstalling the first glass addon if you have it installed as it has code that will lag your game even when idle


Console Commands
- glass_expensive_material (0-1) refractive material I made, its sorta garbage so thats why its optional
- glass_lagfriendly (0-1) helps with lag a bit by completely no colliding shards

Features
The original addon was created almost 2 years ago, but I decided to rewrite it as the original addon was kind of garbage (and to see how much improvement ive made)
New features include:
- Better material, optional refractive material using glass_expensive_material (0-1) console command
- Actually breaks where you hit it
- Multiple shards generated per hit instead of 2
- Code revisions
- Easier api
- Better networking
- Nearby shards will 'weld' together after broken (this is actually an optimization but I figured it looked sorta good too)

A tool exists in the spawnmenu called "Glass Rewrite", you can use it to turn any prop into glass, there isn't a limit to how complex or big the object can be.. so be careful when trying to turn things like cannonballs into glass


opensource code: https://github.com/meetric1/Glass-Rewrite
discord: https://discord.gg/cmQvg2AHgP
patreon: https://www.patreon.com/meegmod
Popular Discussions View All (6)
6
28 Jun, 2023 @ 11:13pm
theres only the 100% fragile
iglopol
2
5 Feb, 2024 @ 8:56pm
I see glass as green outline/wireframe
voxel
2
10 Apr @ 6:50pm
green outline
Tiktaalik
154 Comments
Bean's Bag Hot of Garbage 6 Jul @ 7:38am 
How about these ones?: glass_largesheet_break1.wav, glass_largesheet_break2.wav, glass_largesheet_break3.wav
tHe rEEl feDy FatBeAR 29 Apr @ 2:05pm 
its pretty cool, but doesnt work right with doors that have breakable glass. it just kinda floats.
Another Creater 10 Apr @ 6:48pm 
Idk if is bc I have way to many mods installed or is bc of recent updates of GMod... but when I spawn any type of grass, the texture gets removed and turns into a Wireframe

Pls Fix...?
A-200 12 Feb @ 11:51am 
this might be too much to ask for, but make it work with gwater2 if you can
Sludgemonkey 5 Jan @ 4:44pm 
the glass won't survive a nuclear explosion thats for sure
da ragin yajun 27 Sep, 2024 @ 8:21pm 
Mee, got an issue. The glass is flipped and doesn't match its own collision. The glass shards have the same problem and deform the overall shard sets. Need a fix for this ASAP. I tried uninstalling collision accuracy stuff and mods that would affect glass decals. No avail.
L6061 14 Sep, 2024 @ 9:15am 
It would be cool if there was a variable that would allow players and npcs to recieve damage from glass pieces.
finn.finn.the.boy 23 Aug, 2024 @ 9:33am 
this mod is so much worse than its first edition, only because it has less configuration and a worse glasstool
also it would be cool if it was more realistic, as in having a hole where it gets shot
but that is not important, the configuration is more important
Callsign_Ewok 22 Aug, 2024 @ 8:03am 
Really cool and I loved it for a long time as it actually overwritten glass in mapo which made fighting fun and dynamic. But afterawhile i missed the simplicity and higher performance and stability of the vanilla glass behaviour. Plus vanilla standard gmod glass is actually technically more realistic it feels like when shooting or breaking it.
Жопка 6 Jul, 2024 @ 12:14pm 
wow cool!!!!!!!!