blocking phys objects and player

blocking phys objects and player

Re: blocking phys objects and player Posted by Mint_Sauce on Sat Dec 11th 2004 at 8:44pm
Mint_Sauce
35 posts
Posted 2004-12-11 8:44pm
35 posts 434 snarkmarks Registered: Dec 10th 2004 Occupation: Computer Person Location: UK
My level contains rocks around the outside of the level and I have a
ball which I don't want people to fire over the rocks as they won't be
able to get it back. Is there a way of blocking both people and objects
in to a certain area?
Re: blocking phys objects and player Posted by Gwil on Sat Dec 11th 2004 at 8:47pm
Gwil
2864 posts
Posted 2004-12-11 8:47pm
Gwil
super admin
2864 posts 315 snarkmarks Registered: Oct 13th 2001 Occupation: Student Location: Derbyshire, UK
A texture called CLIP , if it still exists in HL2. Should appear invisible and allow bullets hrough but not solid objects.

Make a blocking wall textured all over with it , and it will render invisible by default.
Re: blocking phys objects and player Posted by GrimlocK on Sat Dec 11th 2004 at 9:43pm
GrimlocK
386 posts
Posted 2004-12-11 9:43pm
GrimlocK
member
386 posts 259 snarkmarks Registered: Mar 7th 2002 Occupation: Self Employed Location: Texas
How about blocking objects but allowing players to pass through?

EDIT: The texture Gwil is talking about it call "tools_noclip". Just type in "tools" in the texture selectiong filter to quickly find it.
Re: blocking phys objects and player Posted by satchmo on Sat Dec 11th 2004 at 10:25pm
satchmo
2077 posts
Posted 2004-12-11 10:25pm
satchmo
member
2077 posts 1809 snarkmarks Registered: Nov 24th 2004 Occupation: pediatrician Location: Los Angeles, U.S.
How about blocking objects but allowing players to pass through?
But under what kind of circumstances do you need that? It doesn't make any sense to have something equivalent to that in the real world.
Re: blocking phys objects and player Posted by GrimlocK on Sat Dec 11th 2004 at 11:47pm
GrimlocK
386 posts
Posted 2004-12-11 11:47pm
GrimlocK
member
386 posts 259 snarkmarks Registered: Mar 7th 2002 Occupation: Self Employed Location: Texas
<DIV class=quote>
<DIV class=quotetitle>? quoting satchmo</DIV>
<DIV class=quotetext>

<DIV class=quote>
<DIV class=quotetitle>? quote:</DIV>
<DIV class=quotetext>How about blocking objects but allowing players to pass through? </DIV></DIV>

But under what kind of circumstances do you need that? It doesn't make any sense to have something equivalent to that in the real world.

</DIV></DIV>

For example: <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>

1. If you have physics objects in your DM map which also happens to have a cliff. Say you don't want them to toss everything off the cliff, including the weapons (as some players of high intelligence will probably do), but you want the player to be able to fall off. <o:p></o:p>

2. You have any type of hole in your map that you don't want objects wedged into <o:p></o:p>

3. You have a tunnel with a ladder in it that might taper as you descend into it and you don't want objects to end up lodged in it.<o:p></o:p>

Trust me there are a lot of places where it would seem to come in handy.
Re: blocking phys objects and player Posted by ReNo on Sat Dec 11th 2004 at 11:53pm
ReNo
5457 posts
Posted 2004-12-11 11:53pm
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
I have tools_noclip used in my map, but it doesn't block physics objects unfortunately :sad:
Re: blocking phys objects and player Posted by Nanodeath on Sat Dec 11th 2004 at 11:59pm
Nanodeath
356 posts
Posted 2004-12-11 11:59pm
356 posts 66 snarkmarks Registered: Nov 11th 2004 Occupation: Student - Bioengineering Location: Seattle, WA, USA
You're in luck! I've tested it and I believe I've found the solution. You'll need two objects.

1) Brush entity - func_clip_vphysics. Doesn't matter what texture you choose, it'll be invisible. Set the Filter Name field to the name of the next entity.

2) Point entity - filter_activator_class. Give it a name, set the Filter mode to "Disallow entities that match criteria", and set the Filter Classname to "player" (no quotes).

There, that's everything! I tested it with a prop_physics and it blocked it fine, while letting me go through it. I couldn't force the object through with the grav gun, either.
Re: blocking phys objects and player Posted by Mint_Sauce on Sun Dec 12th 2004 at 12:21am
Mint_Sauce
35 posts
Posted 2004-12-12 12:21am
35 posts 434 snarkmarks Registered: Dec 10th 2004 Occupation: Computer Person Location: UK
awesome, works perfectly now! :biggrin:
Re: blocking phys objects and player Posted by GrimlocK on Sun Dec 12th 2004 at 5:33am
GrimlocK
386 posts
Posted 2004-12-12 5:33am
GrimlocK
member
386 posts 259 snarkmarks Registered: Mar 7th 2002 Occupation: Self Employed Location: Texas
Thats great Nanodeath, that will come in handy in my hl2dm map.
Re: blocking phys objects and player Posted by Nanodeath on Sun Dec 12th 2004 at 5:34am
Nanodeath
356 posts
Posted 2004-12-12 5:34am
356 posts 66 snarkmarks Registered: Nov 11th 2004 Occupation: Student - Bioengineering Location: Seattle, WA, USA
Glad to be of service :biggrin: