Breaking properties of windows?

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

Moderator: Moderators

Post Reply
rezner
Corporal
Posts: 40
Joined: Wed Feb 12, 2003 7:43 pm

Breaking properties of windows?

Post by rezner »

I have windows.....
I want you to be able to shoot through them without breaking
Ive accomplished this by setting health to 10000
But i can still break them with a grenade

Im using a texture with multiple panes so having it break is foolish

I dont want that.....
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Well... don't give it a func_window ... then it wont break... at all... mo matter what... ( If I'm wrong it is because I'm tired )
Admin .MAP Forums
Image
Head above heels.
rezner
Corporal
Posts: 40
Joined: Wed Feb 12, 2003 7:43 pm

Post by rezner »

i wont be able to shoot through it then right?
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

hey there, you can shoot thro any old glass texture that's the joys of 'em, applying the function->window etc. etc... will make them breakable and then passable, hope this helps, if not then some1 else will reply after this with a better response :D
hope this helps, prob not cos it's all foreign 2 me :-/
rezner
Corporal
Posts: 40
Joined: Wed Feb 12, 2003 7:43 pm

Post by rezner »

Well i tried your idea Nugget and with the window texture im using i couldnt shoot through it as a worldspawn

so i dont know if its just this texture or what
nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

many apologies rezner, i've just tested all the glass it seems ur right, there are some textures that u can't shoot thro, never noticed this b4, must of just got lucky on the 1's i'd previously chosen, all windows that are prebuilt in2 the wall in a texture are not shootable thro, there are a couple that u can shoot thro that are just the glass and frame tho, honest, this i am sure about,

i know u've heard that b4, but this time i'm convident :D
hope this helps, prob not cos it's all foreign 2 me :-/
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

---

Post by tltrude »

You can also, set windows to be non passable when broken.
Tom Trude,

Image
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Typing

$window nodamage

in the script file (assuming 'window' is the targetname of the func_window) should work.
Image
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post by Angex »

If you have alot of windows and don't want to clog up your script, try setting the damage to -1. Since each shot increments the damage it should never reach -1. (Technically it could, but I don't think anyone would shoot it enough.)
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

No idea here, but can't you just set the key-value pair 'nodamage 1' in the window brush properties?
Admin .MAP Forums
Image
Head above heels.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Possibly.
Image
rezner
Corporal
Posts: 40
Joined: Wed Feb 12, 2003 7:43 pm

Post by rezner »

Good call Angex your idea worked

thanx
Post Reply