Page 1 of 1

Spawn Brushes

Posted: Wed Sep 10, 2003 12:02 pm
by SNakeFluGeL
Is it possible to spawn brushes... with tihs information:

{
"classname" "script_object"
"targetname" "88_nowalkythough"
// brush 0
{
( 1214 -2174 -314 ) ( 1182 -2174 -314 ) ( 1182 -2206 -314 ) notexture 0 0 0.00 1 1 0 0 0
( 1182 -2206 -282 ) ( 1182 -2174 -282 ) ( 1214 -2174 -282 ) notexture 0 0 0.00 1 1 0 0 0
( 1182 -2206 -282 ) ( 1214 -2206 -282 ) ( 1214 -2206 -314 ) notexture 0 0 0.00 1 1 0 0 0
( 1214 -2206 -282 ) ( 1214 -2174 -282 ) ( 1214 -2174 -314 ) notexture 0 0 0.00 1 1 0 0 0
( 1214 -2174 -282 ) ( 1182 -2174 -282 ) ( 1182 -2174 -314 ) notexture 0 0 0.00 1 1 0 0 0
( 1182 -2174 -282 ) ( 1182 -2206 -282 ) ( 1182 -2206 -314 ) notexture 0 0 0.00 1 1 0 0 0
}
}

Posted: Wed Sep 10, 2003 12:04 pm
by SNakeFluGeL
You should be able to spawn a brush with a texture through script =/

Posted: Wed Sep 10, 2003 12:36 pm
by Angex
That looks like part of a *.map file rather than a *.bsp. Map files are formatted for/used by radiant and not MoH.

Posted: Wed Sep 10, 2003 4:38 pm
by SNakeFluGeL
yea it's a bit of a bush so I know the coordinates...

But can you add some kind of brush in the .scr file or can you compile it seperatly to bsp, to add it to an all existed bsp?

Posted: Wed Sep 10, 2003 4:39 pm
by SNakeFluGeL
Cause I lost the *.map file of my map, cause I deleted it because I thought I was done with the map and now I discovered that I wanted a wall some where so I Thought maybe add it with the scr.... or is their a way I can compile it to bsp and the combine both bsp's?

Posted: Wed Sep 10, 2003 6:23 pm
by jv_map
Hmm you can spawn a brush via spawn script_object and then use the setsize command to set its dimensions. Note you can only make axial brushes this way.

I don't know if it's possible but maybe you can assign a texture with the shader or surface commands :?

Posted: Mon Sep 15, 2003 1:54 pm
by Sgt.Pepper
Here is how EA spawned a brush for a map fix. It was in the 2.15 patch for SH.
//add in our clip brushes
local.clipbrush = spawn script_object
local.clipbrush.origin = ( -1125 4470 -10 )
local.clipbrush setsize ( -340 -220 -100 ) ( 340 150 120 )
local.clipbrush.angles = ( 0 347 0 )
local.clipbrush solid