windows bulletproof

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
carduchi
Lance Corporal
Posts: 22
Joined: Wed Jan 07, 2004 5:14 am
Contact:

windows bulletproof

Post by carduchi »

I need some help on making my windows bulletproof
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

How about not makeing them func_widow and putting a weapon clip brush over them .
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

isnt glass just by itself bulletproof?
User avatar
williewisp
First Lieutenant
Posts: 208
Joined: Fri May 16, 2003 1:10 pm
Location: ireland

Post by williewisp »

if you just use the texture of a window
then compile.
if you shoot at it long enough it will disappear.
(well i think it does)
it's not a time for thinking its a time for drinking!
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

It doesn't :wink:
Image
User avatar
carduchi
Lance Corporal
Posts: 22
Joined: Wed Jan 07, 2004 5:14 am
Contact:

Post by carduchi »

thanks for the help, but i figured it out :D This is what i had to do


textures/barracks/window22
{
qer_editorimage textures/barracks/window22.tga
qer_keyword window
surfaceparm nodamage
qer_keyword glass
surfaceparm glass
// cull none
{
map textures/barracks/windowshadow22.tga
tcgen environment
alphagen const .2
blendFunc blend
}
{
map textures/barracks/window22.tga
// blendFunc blend
depthWrite
alphaFunc GE128
nextbundle
map $lightmap
}
}

//-----------------------------------------------------------------------

i had to ad surfaceparm nodamage :shock:
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

If I'm correct surfaceparm nodamage is used to prevent being hurt when you fall upon the texture :?
Image
User avatar
carduchi
Lance Corporal
Posts: 22
Joined: Wed Jan 07, 2004 5:14 am
Contact:

Post by carduchi »

well its working now.I put a metal texture like two feet in the back of it and the bullets holes were not showing up on it after shooting the window.I'll try it out with another player just to be 100 percent.
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

omniscient wrote:isnt glass just by itself bulletproof?
well, is it?
User avatar
carduchi
Lance Corporal
Posts: 22
Joined: Wed Jan 07, 2004 5:14 am
Contact:

Post by carduchi »

No the glass is not bulletproof you still can get shot if your standing behind it. Granade and rocket proof maybe.
Post Reply