window

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
chorizo
Corporal
Posts: 33
Joined: Thu Jan 08, 2004 5:04 pm
Location: canada-quebec-montreal-lasalle

window

Post by chorizo »

i am making a church and i wanna add breakable church windows....u know the ones with lots of color....well.....wot do i do if there isn't a "borken" texture for that window??
can i still do it?
and make it break and disapear :?: :?
bighoss
Major
Posts: 276
Joined: Fri Jan 09, 2004 3:34 pm
Location: USA, Ohio

Post by bighoss »

I think you or someone might have to take one of the moh textures that you wanna use, make a copy of it and edit the copy so that it looks like a broken version of the stock one. At least that is what I think, other than that I dont have an answer for you. Maybe someone can help you if I didnt. Also if you do make a broken texture of the window you wanna use, yoo'll need to make the brush withe the broken texture a script object and have it target the normal window.
Image
Strive to accomplish great things!!
K.I.A.
Corporal
Posts: 27
Joined: Thu Feb 26, 2004 11:19 pm

Post by K.I.A. »

I haven't tried this yet, but tltrude told me this will work. (or at least this is what i understood from it).

Make the window just like you would any other breakable window. Insteaed of using a broken window texture on the broken window brush, use the same texture as the unbroken window. Then, cut up this brush into pieces and delete some chunks, so that all you have left is some shards around the frame (or whatever looks best). Then select all the pieces that make up the broken window and make them all a script_object all with the same targetname (matching the target in the corresponding func_window brush)

Basically its the same as doing a regular breakable window except instead of having a single brush for the script_object (broken element), you use a number of brushes, leaving out the peices you want to be broken away.

I hope this works for you, because I am planning to use this technique on my map. Please post and let me know if it works. :)
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

that method does work btw.
Image
K.I.A.
Corporal
Posts: 27
Joined: Thu Feb 26, 2004 11:19 pm

Post by K.I.A. »

I have now tried it put for myself. Worked like a charm.

Thanks tltrude :D
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

another

Post by tltrude »

Here is another way to do it.

If you make the window broken to start with, you only need to fill in the broken out parts with func_window. That way, you don't even need a script_object. So, as you can see, a func_window can be made of more than one brush too.

Note: If you try that on a see-through window, be sure to use nodraw texture on the edges of each piece.
Tom Trude,

Image
Post Reply