*********************************
AK-47's Glass Respawn Example Map
*********************************

	ABOUT
*************

	I made this map because I got endless quesions on how you can
achieve the effect of glass respawning. So, after a little playing
around, I came to a pretty believable setup, which is detailed in this
map.

	MAP INFO
****************

	The map is made up of four entities pertaining to the effect:
func_button; env_shooter; ambient_generic; and multi_manager. All those
entities are located near the center of the map. All other entities
are ones added so that you can view the effect in the game.

	ENTITY INFO/USAGE
*************************

	Here are the basic steps for achieving this effect:

Make the window into a func_button. Set the health to however much damage you want the window to take before breaking. Set the direction to straight down, and set the speed to a very high number (900+). Set the reset time to however long you want it until the window respawns. Make sure that there are no sounds associated with the button.

Create an env_shooter right in front of the crate, and set it so that it spits out about 7 models/glassgibs.mdl gibs every time it is triggered. Make sure to set the "Repeatable" flag. Set the direction of the env_shooter to DOWN. Give it a name.

Also create an ambient_generic that plays a shattering sound ONCE every time that it is triggered. Make sure the 'Start Silent', 'Does NOT Loop', and 'Medium Radius' flags are checked. Give it a name. Set the path/filename of the WAV to a shattering sound, I used debris/bustglass2.wav. Make sure all the other settings are right.

Finally, set the TARGET of the func_button to trigger a multi_manager. The multi_manager will then, in turn, trigger the env_shooter and ambient_generic. Make sure the delay for both of them is 0.

Now, when the window recieves the amount of damage you put in the health field for the func_button, it will shoot into the ground instantaneously, and trigger the multi_manager. The multi will then trigger the env_shooter which will make it look like the window shattered apart, and the multi will also trigger the ambient_generic which will play a shattering sound, further deepening the effect.

	FOR HELP...
*******************

	If you have any questions or problems, there are a couple
resources from which you can obtain answers. First check the Wavelength
Levels Department at:

http://www.planethalflife.com/wavelength/levels

	Search every page of the Levels Dept. to try and find the
answer to your question... you'll probably find it. If you can't find 
what you're looking for anywhere at Wavelength, then check out the
Planet Half-Life Editing Forums at:

http://forums.planethalflife.com

----------------------------------------------------------------------

"Hey, I could've sworn I shattered that window just a minute ago!"

AK-47
Levels Dept. Columnist, Wavelength Editing Site
(www.planethalflife.com/wavelength)