Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/sites/a/ on line 20
Wavelength | Your Game Editing Resource | Making Glass Start Out Broken
Welcome, Guest! Login | Register

Making Glass Start Out Broken [Print this Article]
Posted by: Hp-P00nst3r
Date posted: Jul 17 2005
User Rating: 5 out of 5.0
Number of views: 7336
Number of comments: 1
Description: This tutorial will teach you how to make a func_breakable_surf start out broken when the map loads without the player doing anything to it.
I couldn't seem to find a tutorial about how to make a glass window start out broken, so I decided that I'd write one. Just so you know, this is my first tutorial.

I assume you already now how to make a proper breakable window. If you do not know, there is a good tutorial about it here at Wavelength.

Step 1: Open one of your maps or make a new one.

Step 2: Make a func_breakable_surf with a frame around it (as if you are making a normal breakable window).

Step 3: Set up an env_explosion in the middle of the window, then change the options of the env_explosions as follows:
Name: Anything you want as long as you know what it is
Magnitude: 1

Then in the flags tab, change the flags as follows: Check No fireball, No smoke, No decal, No sparks, No sound, No fireball smoke, No particles, and No Dlights.

Step 4: Set up a logic_auto near the env_explosion (it doesn't matter where you put it, but I recommend that you put it in a convenient place)

Step 5: Change the entity outputs for the logic_auto as follows (if you aren't sure how to use the input/output system, read this):
My output named: OnMapSpawn
Target entities named: env_explosion (the name you typed for that entity)
Via this output: Explode
Check the box that says, "Fire once only".

Then in the flags tab, change the flags as follows: Check "Remove on fire"

Step 6: Test your map! When it loads the env_explosion will break the glass leaving the jagged glass edges on the side of the frame.

Rate This Article
This article is currently rated: 5 out of 5.0 (2 Votes)

You have to register to rate this article.
Related Files
Zip FileFilename:
File Size: 12.4 KB
Zip FileFilename: brokenglasstutorial0000.jpg
File Size: 182.9 KB

User Comments Showing comments 1-1

Posted By: Unknown on May 25 2006 at 17:03:24
so far so good. im new so idk what your talking about anyway, though i think i get some of it. good job

You must register to post a comment. If you have already registered, you must login.

Latest Articles
3rd person View in Multiplayer
Half-Life 2 | Coding | Client Side Tutorials
How to enable it in HL2DM

By: cct | Nov 13 2006

Making a Camera
Half-Life 2 | Level Design
This camera is good for when you join a map, it gives you a view of the map before you join a team

By: slackiller | Mar 05 2006

Making a camera , Part 2
Half-Life 2 | Level Design
these cameras are working monitors that turn on when a button is pushed.

By: slackiller | Mar 04 2006

Storing weapons on ladder
Half-Life 2 | Coding | Snippets
like Raven Sheild or BF2

By: British_Bomber | Dec 24 2005

Implementation of a string lookup table
Half-Life 2 | Coding | Snippets
A string lookup table is a set of functions that is used to convert strings to pre-defined values

By: deathz0rz | Nov 13 2005

Latest Comments
knock knock
General | News
By: MIFUNE | Dec 31 2017
knock knock
General | News
By: omega | Dec 22 2016
knock knock
General | News
By: MIFUNE | Oct 10 2015
New HL HUD Message System
Half-Life | Coding | Shared Tutorials
By: chbrules | Dec 31 2011
knock knock
General | News
By: Whistler | Nov 05 2011
Particle Engine tutorial part 4
Half-Life | Coding | Client Side Tutorials
By: darkPhoenix | Feb 18 2010
Particle Engine tutorial part 2
Half-Life | Coding | Client Side Tutorials
By: darkPhoenix | Feb 11 2010
Particle Engine tutorial part 3
Half-Life | Coding | Client Side Tutorials
By: darkPhoenix | Feb 11 2010
Game Movement Series #2: Analog Jumping and Floating
Half-Life 2 | Coding | Shared Tutorials
By: mars3554 | Oct 26 2009
Particle Engine tutorial part 5
Half-Life | Coding | Client Side Tutorials
By: Deadpool | Aug 02 2009

Site Info
297 Approved Articless
8 Pending Articles
3940 Registered Members
0 People Online (5 guests)
About - Credits - Contact Us

Wavelength version:
Valid XHTML 1.0! Valid CSS!