Page 1 of 2

Brushes non-solid

Posted: Thu May 06, 2004 2:42 am
by kai0ty
yea i got this from counterstrike and i thought it would be cool. anyway how can i make it so walls can be shot through? i tried non-solid and the flag just goes away. is there anyway esle?

entity

Posted: Thu May 06, 2004 10:01 am
by tltrude
Make the wall a script_object, then click on the NOT_SOLID check box. If you still want it to block players, make a copy of the wall and give it player clip texture (its under common).

Re: entity

Posted: Thu May 06, 2004 4:58 pm
by blue60007
tltrude wrote:Make the wall a script_object, then click on the NOT_SOLID check box. If you still want it to block players, make a copy of the wall and give it player clip texture (its under common).
Cool! I've always wondered how to do that. :)

Posted: Thu May 06, 2004 5:14 pm
by M&M
well,its the same method as a "glass" window ,right?
but shouldnt the properties also be affected by the texture ?

shader

Posted: Thu May 06, 2004 9:28 pm
by tltrude
The surface of a brush is affected by the texture shader. But, it is much easier to make it a script_object, than it is to write a new shader. The properties you see in the surface inspector window will probably only work for textures that have no shader to start with.

Posted: Sat May 08, 2004 2:54 am
by kai0ty
um, that didnt work. the wall is still solid, and in the editor as soon as i close script inspector it just unchecks everyhintg. help? lol

Posted: Sat May 08, 2004 3:01 am
by blue60007
If you've made a script_object and chech the NON_SOLID box, that should work...

Posted: Sat May 08, 2004 3:06 am
by kai0ty
i see, i was goin in surface inspector, not entity properties. now for the ultimate question, can i make it block nades and players, but not bullets???? *dun dun dun*

Posted: Sat May 08, 2004 3:16 am
by blue60007
make a copy of it, not a script_object, just a regalar brush and give it a player clip and place it on top of it. As for grenades, is there a grenade clip? :?

Posted: Sat May 08, 2004 3:46 am
by fuhrer
must be a nade clip coz in my maps i can lob em thru the sky box but in stock maps u cant

Posted: Sat May 08, 2004 3:59 am
by kai0ty
u can lob thru sky box in stock maps actually, but no there is no nade clip, thx anyway. any one else have any ideas?

Posted: Sat May 08, 2004 4:19 am
by blue60007
I'd try looking at the shaders for the clips and see if you could copy and modify one to make it clip nades... :?

Posted: Sat May 08, 2004 6:16 am
by kai0ty
good idea, where are those at?

projectile

Posted: Sat May 08, 2004 12:46 pm
by tltrude
Granades and rockets are refered to using the name "projectile". So if you targetname the script_object wall say "mywall" you can do this in the script.

$mywall immune projectile

I think that is right.

Posted: Sat May 08, 2004 1:04 pm
by blue60007
Nevermind, I looked at a clip's shader, and I don't think it can be done via a new shader, sorry :oops: ... tltrude's suggestion, I'm thinking should work...