respawnable glass

respawnable glass

Re: respawnable glass Posted by nickster on Sat Dec 4th 2004 at 9:46pm
nickster
22 posts
Posted 2004-12-04 9:46pm
nickster
member
22 posts 2 snarkmarks Registered: Nov 22nd 2004
I was wondering if it's possible to make make glass that will break, but then respawn itself in about 30 seconds after shattering. I've got glass that breaks, but I haven't been able to figure out a way to get it to respawn itself.

In a multiplayer map I'm sure all the glass would be broken within the first few minutes of play, I think it would be cool to have it respawn cuz everyone enjoys shooting glass that shatters. or is it just me?
Re: respawnable glass Posted by diablobasher on Sat Dec 4th 2004 at 10:13pm
diablobasher
143 posts
Posted 2004-12-04 10:13pm
143 posts 44 snarkmarks Registered: Oct 18th 2003 Occupation: Spastic, Bannisher of HALO! Location: England
I dont think it can be done, would be cool though.

I would love to see a CT dive out of a window with a hostage close behind, only to bump on the glass that he coulda sworn wasn't there a second ago. This lets the Terrorist behind him catch up and blow his breainz out :biggrin: i thik thatd be great
Re: respawnable glass Posted by G.Ballblue on Sat Dec 4th 2004 at 10:39pm
G.Ballblue
1511 posts
Posted 2004-12-04 10:39pm
1511 posts 211 snarkmarks Registered: May 16th 2004 Occupation: Student Location: A secret Nuclear Bunker on Mars
<DIV class=quote>
<DIV class=quotetitle>? quoting nickster</DIV>
<DIV class=quotetext>I was wondering if it's possible to make make glass that will break, but then respawn itself in about 30 seconds after shattering. I've got glass that breaks, but I haven't been able to figure out a way to get it to respawn itself.

In a multiplayer map I'm sure all the glass would be broken within the first few minutes of play, I think it would be cool to have it respawn cuz everyone enjoys shooting glass that shatters. or is it just me?

</DIV></DIV>

In HL2: DM, I think it may respawn automatically, but I'm not sure.

I have an idea of a way you could make a respawning glass -- it wouldnt be shattering, but respawning breakable glass nontheless. (Try this method in CS:S)

First, create your glass. Make it transparent, etc. DON'T make it a breakable object though -- set it to a button (should work). Set the button to activate when it is shot -- set the health to something super low, like, well, the lowest. Set the buttons direction so that it dissapears from veiw -- also set its movement speed to 99999999 so you cannot see it move. Give the button a "delay before reset" value of 30.

Now, create some gib_shooters right inside/next to the window -- aim them in the direction you want them to shoot. Choose your gibs, etc. Have the button target the gibshooters. Create a sound entity as well (env_soundscape, I belive is the entity name). And have the soundscape play a glass shattering sound. If there are any flags that say, "DO NOT LOOP" check them.

What should happen, is that the button is shot by the player, and moves out of veiw so fast the player can't see it. The now activated button targets the gib_shooters, and soundscape, and makes it look as though you just broke some glass. After 30 seconds, the button (glass) slides back into veiw, and the trigger sequence is reset.
You should be able to figure out the entity properties for yourself :wink: I belive this is how any respawning-breakable object could be done. Bare in mind, that if the player is caught between the button when it "resets" there may be a problem, or it may just take another 30 seconds to reset :smile:
Re: respawnable glass Posted by diablobasher on Sat Dec 4th 2004 at 11:44pm
diablobasher
143 posts
Posted 2004-12-04 11:44pm
143 posts 44 snarkmarks Registered: Oct 18th 2003 Occupation: Spastic, Bannisher of HALO! Location: England
Hey ballblue, it took you six whole days?

I thought it was one of the shortest games in history :sad: , i did it in little under 6 hours :sad: i was really dissapointed, and i dont wanna spoil anything fo people, but the ending, sheesh, youd think they coulda put some effort into it. Half life 3 sometime in about 4 years from now i think :sad:
Re: respawnable glass Posted by Nanodeath on Sun Dec 5th 2004 at 2:29am
Nanodeath
356 posts
Posted 2004-12-05 2:29am
356 posts 66 snarkmarks Registered: Nov 11th 2004 Occupation: Student - Bioengineering Location: Seattle, WA, USA
People usually say it takes 15 hours...6 hours you'd have to be rushing sooo fast through it. Stop and admire the scenery once in a while ;-)
Re: respawnable glass Posted by diablobasher on Sun Dec 5th 2004 at 3:14am
diablobasher
143 posts
Posted 2004-12-05 3:14am
143 posts 44 snarkmarks Registered: Oct 18th 2003 Occupation: Spastic, Bannisher of HALO! Location: England
I have very busy eyes, i only stop to admire scenery if something is happening.

I dont know why i play through games so fast, here is my random table of games i can remember finninshing quickly

all without any guidance

Resident evil 2,. 5 hours, first time, 1hour 12minutes 36second A rank, no saves is my record

Resident Evil First time, roughly 8 hours, didnt die though, record 1 hour 28 mins exactly.

Final fantasy nine, the morning after it came out, dont know exact time.

Final Fantasy 7, all items, killed weapons, gold chocobo ect, 44 hours.

Metal gear solid 2 (i hate that game) the day before it came out :biggrin: , i got it a day early, roughly 3 hours time.

HL2 roughly 6 hours, just under 5:30 the seconf time through. And i spent most of it mot weilding anything other than the gravity gun and a radiator grin

i dont know why i finnish games so quickly :sad: i just do, its not fair, why am i acursed so!!

I think my problem is i play faaaaar tooo many games for my own good :biggrin:
Re: respawnable glass Posted by nickster on Sun Dec 5th 2004 at 9:05am
nickster
22 posts
Posted 2004-12-05 9:05am
nickster
member
22 posts 2 snarkmarks Registered: Nov 22nd 2004
Thanks for the advice, but in a lot of parts of the map the glass is bigger than the walls so I wouldn't be able to hide the glass effectively.

This is for HL2 Deathmatch BTW. I'm doing the Goldeneye level Stack which has respawning glass in it.
Re: respawnable glass Posted by ZivZulander on Sun Dec 5th 2004 at 12:35pm
ZivZulander
9 posts
Posted 2004-12-05 12:35pm
9 posts 1 snarkmarks Registered: Dec 5th 2004
there should be a point based entity that comes with the hldm update which allows you to specify how often an entity will respawn - in this case the target entity would be the name of your breakablesurface. (cant pin point the exact entity as my source sdk suddenly decided not to work :sad: )
Re: respawnable glass Posted by nickster on Mon Dec 6th 2004 at 9:43pm
nickster
22 posts
Posted 2004-12-06 9:43pm
nickster
member
22 posts 2 snarkmarks Registered: Nov 22nd 2004
Hey hammer is working now, any chance you know what the name of the entity would be? I've tried various methods on this and still can't figure it out. Thanks.
Re: respawnable glass Posted by Nanodeath on Mon Dec 6th 2004 at 9:45pm
Nanodeath
356 posts
Posted 2004-12-06 9:45pm
356 posts 66 snarkmarks Registered: Nov 11th 2004 Occupation: Student - Bioengineering Location: Seattle, WA, USA
The only thing I know of that directly relates to items respawning is prop_physics_respawnable, but glass isn't a prop so that doesn't really help.
Re: respawnable glass Posted by iceman on Thu Mar 10th 2005 at 2:34am
iceman
31 posts
Posted 2005-03-10 2:34am
iceman
member
31 posts 3 snarkmarks Registered: Jan 26th 2005
respawing glass is easy, tie the glass to a funtion breakable give
it a name, then create a point_template set its name up and in the
first template set the name to your glass, create a logic_auto. On the
outputs put (onmapspawn, "your point_template", forcespawn) Now under
your glass put in the outputs (onbreak, "your point_template",
forcespawn) and put a delay of how ever many seconds you want to delay
the spawning that should work. If im wrong look at this web site: http://www.hl2world.com/wiki/index.php/Exploding_Barrels_%28UPDATED%29

and improvise
Re: respawnable glass Posted by French Toast on Thu Mar 10th 2005 at 11:25pm
French Toast
3043 posts
Posted 2005-03-10 11:25pm
3043 posts 304 snarkmarks Registered: Jan 16th 2005 Occupation: Kicking Ass Location: Canada
Yeah, this issue was from december 2004. I have a feeling it's been dealt with. I think that people should stop reviving these ancient topics. They've been dealt with or forgotten.