Page 1 of 1
Half-Life BSP - Transparent Brush that only blocks players.
Posted: Fri Apr 23, 2010 9:44 pm
by Team Xlink
Hello.
I was wondering how I could create a brush that the player can see through, and it blocks the player from going through, but only the player, I still need rockets bullets and every other object to be able to go through it.
How would I go about doing this, for Half-Life BSP?
Thank you.
Posted: Fri Apr 23, 2010 10:25 pm
by Eluan
Don't know if there is something already in place for doing this, but you can look at the engine code, in SV_ClipToLinks, world.c. Use the FL_MONSTERCLIP flag as an example.
Posted: Fri Apr 23, 2010 10:33 pm
by Lardarse
I don't know how you'd backport "playerclip" into BSP29/BSP30. I'd want to ask why, though.
There is, however, a rather tricky to set up hack involving the .owner field. It might be detailed in the mapping tricks thread over at func_.
Posted: Sat Apr 24, 2010 12:19 am
by Spike
find the texture named 'clip'. make a brush with that texture. put it where you want to block... job done. enjoy.
depends on the toolchain, but I doubt valve changed that part, as its useful for corners and stuff
Posted: Sat Apr 24, 2010 12:30 am
by frag.machine
Spike wrote:find the texture named 'clip'. make a brush with that texture. put it where you want to block... job done. enjoy.
depends on the toolchain, but I doubt valve changed that part, as its useful for corners and stuff
That's what I thought when I first read the request... "it's exactly how 'clip' brushes behave" except for the "any other entity" part (AFAIK monster, bullets and other game entities won't cross it either).
Posted: Sat Apr 24, 2010 12:32 am
by Spike
well, bullets would.
monsters would not.
Posted: Sat Apr 24, 2010 12:51 am
by Team Xlink
I tried that but Zoners compile tools give me this error:
Code: Select all
Error: Entity 28 has no visible brushes
Error: No visibile brushes
Description: All brushes are CLIP or ORIGIN (at least one must be normal/visible)
Howto Fix: self explanitory
Then when I make one visible it says this:
Code: Select all
Error: Entity 28, Brush 0: mixed face contents
Texture CLIP and CLIP
Error: Entity 28, Brush 0: mixed face contents
Texture CLIP and CLIP
Error: Entity 28, Brush 0: mixed face contents
Texture CLIP and CLIP
Its like a never ending loop, am I missing something?
Posted: Sat Apr 24, 2010 1:16 am
by Spike
a brush, not an entity. part of the world.
Posted: Sat Apr 24, 2010 1:23 am
by Team Xlink
Yeah I just found out I can't tie a brush to a func_wall and use the clip brush, thank you for the help everyone.
Posted: Sat Apr 24, 2010 5:37 pm
by Eluan
True, in a multiplayer mod clip brushes would be enough, probably players will be the only ents to not use hull 0. I overreacted in my first reply, heh.