Non-solid brush

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

Moderator: Moderators

Post Reply
Random Error
Lance Corporal
Posts: 10
Joined: Wed Jun 05, 2002 9:04 am
Location: Netherlands

Non-solid brush

Post by Random Error »

How do I make a non-solid brush?
Surgeon
Site Admin
Posts: 1386
Joined: Tue Jun 04, 2002 1:15 am
Location: Stirling, Scotland
Contact:

Post by Surgeon »

What r u trying to do with it ??
Random Error
Lance Corporal
Posts: 10
Joined: Wed Jun 05, 2002 9:04 am
Location: Netherlands

Post by Random Error »

In a bunker I have a small edge at the bottom of the wall, to make it look nice. But that little edge makes it very hard to jump out over the wall in the gun emplacement. I want to keep the edge, because it looks nice, but if I can just make it non-solid, the players can still jump out the window like before I put the edge in. It isn't thouching the void.
Surgeon
Site Admin
Posts: 1386
Joined: Tue Jun 04, 2002 1:15 am
Location: Stirling, Scotland
Contact:

Post by Surgeon »

ahh ok you just want to create the brush, then make it detail - i think this should work
tstrait72
Second Lieutenant
Posts: 154
Joined: Tue Jun 04, 2002 1:25 am
Location: York, PA U.S.A.
Contact:

Post by tstrait72 »

how big is this edge? send me a screenshot, bsp, or map and I can probably help u out. making it detail wont make it non solid, but possibly using clip brushes may be what u need instead. it all depends on how big it is. you could also make it a script_object, I think that would make it non solid
Toby, or not Toby, that is the question...

Staff Member
MoH Design
Random Error
Lance Corporal
Posts: 10
Joined: Wed Jun 05, 2002 9:04 am
Location: Netherlands

Post by Random Error »

The edge is 4 units high and 2 units wide. I'm trying to add a screenshot to this post.

http://www.geocities.com/hazardum/edge-screenshot.jpg
tstrait72
Second Lieutenant
Posts: 154
Joined: Tue Jun 04, 2002 1:25 am
Location: York, PA U.S.A.
Contact:

Post by tstrait72 »

if it is just trim along the floor, put a clip brush on top of it 2 units wide and going the length of your trim, and up to the bottom of the window you are trying to jump out of. now you have filled that little gap between the wall and the trim so u shouldn't have any more problems
Toby, or not Toby, that is the question...

Staff Member
MoH Design
Random Error
Lance Corporal
Posts: 10
Joined: Wed Jun 05, 2002 9:04 am
Location: Netherlands

Post by Random Error »

The simple solution to my problem, thanks.

I don't know why I didn't think of that myself....
NathanielPT
Corporal
Posts: 43
Joined: Sun Jul 07, 2002 3:35 pm
Location: USA/Africa
Contact:

Post by NathanielPT »

I should have thought of this earlier, but you can set a brush as not solid by using a script. All the brushes you want to be not solid need to be "script_objects". Then in your script you use "$targetname nonsolid". The following script assumes all the brushes have "$targetname" of "nonsolid". You then call this thread before "waitTill spawn". It will set all your brushes with a "$targetname" of "nonsolid" to be "notsolid". I hope this helps. Oh, I haven't tested this script so I'm not sure that it will work, but it should, if not, it should be enough to get you going.

Code: Select all

makenotsolid:

if ($nonsolid == NULL)
  local.nonsolids = 0
else
  local.nonsolids = $nonsolid.size

if (local.nonsolids > 0)
{
  for (local.i = 0; local.i < local.nonsolids + 1; local.i++)
  {
    $notsolid[local.i] notsolid
  }
}

end
--NathanielPT--
Post Reply