Brushes non-solid

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

Moderator: Moderators

kai0ty
Brigadier General
Posts: 507
Joined: Fri Mar 19, 2004 1:45 am

Brushes non-solid

Post 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?
There are only 10 kinds of people in this world; those who know what binary is, and those who don't.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

entity

Post 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).
Tom Trude,

Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Re: entity

Post 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. :)
Image
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post by M&M »

well,its the same method as a "glass" window ,right?
but shouldnt the properties also be affected by the texture ?
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

shader

Post 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.
Tom Trude,

Image
kai0ty
Brigadier General
Posts: 507
Joined: Fri Mar 19, 2004 1:45 am

Post 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
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post by blue60007 »

If you've made a script_object and chech the NON_SOLID box, that should work...
Image
kai0ty
Brigadier General
Posts: 507
Joined: Fri Mar 19, 2004 1:45 am

Post 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*
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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? :?
Image
fuhrer
Captain
Posts: 253
Joined: Sun Mar 14, 2004 3:36 am

Post 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
kai0ty
Brigadier General
Posts: 507
Joined: Fri Mar 19, 2004 1:45 am

Post 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?
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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... :?
Image
kai0ty
Brigadier General
Posts: 507
Joined: Fri Mar 19, 2004 1:45 am

Post by kai0ty »

good idea, where are those at?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

projectile

Post 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.
Tom Trude,

Image
blue60007
General
Posts: 1247
Joined: Sun Mar 07, 2004 11:44 pm

Post 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...
Image
Post Reply