Page 1 of 1

Non-solid brush

Posted: Wed Jun 05, 2002 9:15 am
by Random Error
How do I make a non-solid brush?

Posted: Wed Jun 05, 2002 10:16 am
by Surgeon
What r u trying to do with it ??

Posted: Wed Jun 05, 2002 1:00 pm
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.

Posted: Wed Jun 05, 2002 1:29 pm
by Surgeon
ahh ok you just want to create the brush, then make it detail - i think this should work

Posted: Wed Jun 05, 2002 2:52 pm
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

Posted: Thu Jun 06, 2002 10:50 am
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

Posted: Thu Jun 06, 2002 12:22 pm
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

Posted: Thu Jun 06, 2002 8:31 pm
by Random Error
The simple solution to my problem, thanks.

I don't know why I didn't think of that myself....

Posted: Mon Jul 15, 2002 7:27 am
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