Page 1 of 1
shoot through grids
Posted: Thu May 15, 2003 11:07 pm
by (_F0N_)Pout
well i made some nice walk-on grids but,..
i can't shoot through them
what to do?
thx in advance
Posted: Fri May 16, 2003 5:59 am
by wacko
look at the original shader files: in algiers, e.g., window_decor_set1 got parameters like:
surfaceparm metal
surfaceparm monsterclip
surfaceparm playerclip
surfaceparm fence
surfaceparm alphashadow
this should work with your texture as well.
Posted: Fri May 16, 2003 7:06 am
by jv_map
Remember to use common/nodraw on all side that don't have the grid texture.
Posted: Fri May 16, 2003 8:05 am
by (_F0N_)Pout
well this is what i currently do:
i create the brush 1 gridsize thick
select the top face and apply the grid texture to it (with scaling)
then i select the bottom face and make it nodraw
the side faces i mostly give caulk or don't care about'em (since they arent seen)
Now, when i select the brush and apply 'weaponclip' on it this is what happens:
sometimes when walking under it the grid can't be seen, when walking on it, the grid is seen.
Occassionally i just fall through the grid
Seems like i don't use the correct sequence of applying the textures
is there somewhere a tutorial, or can someone explain in n00b-steps how it's done?
Thx in advance ( btw the grid scale and structure looks awesome thx to the tips on this forum, but as said, unfortunately the can't be shot through at this point)
Posted: Fri May 16, 2003 8:39 am
by jv_map
Make the brush and apply common/nodraw to the entire brush (also the sides). Later give the top face and possibly the bottom face the grate texture.
Posted: Fri May 16, 2003 8:56 am
by (_F0N_)Pout
thx very much
like that ppl will be able to shoot through the grid?
or do i have to give the top face some extra parameters for that?
depends
Posted: Fri May 16, 2003 10:35 am
by tltrude
It depends on the grill texture you use, some you can shoot through and others you can't. The ones you can shoot through only allow bullets to pass through the see-through parts of the grill work. So, the scale of the grill matters.
Hope that helps.
Posted: Fri May 16, 2003 11:39 am
by (_F0N_)Pout
thx all for the help
maybe a tutorial on this would be nice (looking @ agenda)
i'll see what i can do
Posted: Fri May 16, 2003 9:46 pm
by nuggets
if u want a grid that u can shoot through but not walk thought, and it's not been set up in the .tik file
make the grid a scipt->object
give in
key: targetname
value: grid
then add a player clip around it to fit all the dimensions
and add to the script
main:
thread level_setup1
end
level_setup1:
$grid notsolid
end
//as simple as that
