Forum

Half-Life BSP - Transparent Brush that only blocks players.

Discuss the construction of maps and the tools to create maps for 3D games.

Moderator: InsideQC Admins

Half-Life BSP - Transparent Brush that only blocks players.

Postby Team Xlink » Fri Apr 23, 2010 9:44 pm

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.
Team Xlink
 
Posts: 368
Joined: Thu Jun 25, 2009 4:45 am
Location: Michigan

Postby Eluan » Fri Apr 23, 2010 10:25 pm

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.
Eluan
 
Posts: 10
Joined: Sun Jun 15, 2008 9:03 am
Location: Florianópolis, Brazil

Postby Lardarse » Fri Apr 23, 2010 10:33 pm

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_.
Roaming status: Testing and documentation
User avatar
Lardarse
 
Posts: 266
Joined: Sat Nov 05, 2005 1:58 pm
Location: Bristol, UK

Postby Spike » Sat Apr 24, 2010 12:19 am

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
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby frag.machine » Sat Apr 24, 2010 12:30 am

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).
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm

Postby Spike » Sat Apr 24, 2010 12:32 am

well, bullets would.
monsters would not.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby Team Xlink » Sat Apr 24, 2010 12:51 am

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?
Team Xlink
 
Posts: 368
Joined: Thu Jun 25, 2009 4:45 am
Location: Michigan

Postby Spike » Sat Apr 24, 2010 1:16 am

a brush, not an entity. part of the world.
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby Team Xlink » Sat Apr 24, 2010 1:23 am

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.
Team Xlink
 
Posts: 368
Joined: Thu Jun 25, 2009 4:45 am
Location: Michigan

Postby Eluan » Sat Apr 24, 2010 5:37 pm

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.
Eluan
 
Posts: 10
Joined: Sun Jun 15, 2008 9:03 am
Location: Florianópolis, Brazil


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest