Spawn Brushes

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
SNakeFluGeL
Sergeant
Posts: 56
Joined: Wed Jul 02, 2003 4:52 pm

Spawn Brushes

Post 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
}
}
SNakeFluGeL
Sergeant
Posts: 56
Joined: Wed Jul 02, 2003 4:52 pm

Post by SNakeFluGeL »

You should be able to spawn a brush with a texture through script =/
Angex
Major
Posts: 293
Joined: Mon Dec 30, 2002 1:23 pm
Contact:

Post 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.
SNakeFluGeL
Sergeant
Posts: 56
Joined: Wed Jul 02, 2003 4:52 pm

Post 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?
SNakeFluGeL
Sergeant
Posts: 56
Joined: Wed Jul 02, 2003 4:52 pm

Post 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?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 :?
Image
Sgt.Pepper
Sergeant
Posts: 69
Joined: Tue Feb 25, 2003 5:41 pm
Location: Canada

Post 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
Post Reply