Function Crate ????

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

Moderator: Moderators

Post Reply
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Function Crate ????

Post by mcunha98 »

In many stock maps, we see crates with damage/explosion (resting parts of a solid crate)....

I put the function -> crate into a solid, but is only this ???

Somebody know a tutorial about this function ????
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Its almost too simple to tutorialize:
- Make a brush
- Select it
- Make it a func_crate
- Done.

- To see what extra stuff you can do: read the description text in the entity dialog ( the one you get by pressing "n" )
Admin .MAP Forums
Image
Head above heels.
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post by MPowell1944 »

Code: Select all

/*QUAKED func_crate (0 0.25 0.5) ? INDESTRUCTABLE NOTSTACKEDON
Brush model crate object

"spawnitems" is a list of items to spawn when the crate is destroyed.

INDESTRUCTABLE makes the crate, well, indestructable. 
Since the same effect can be achieved by not making it an entity, this should only be used when stacking indestructable crates on top of destructable crates. Otherwise, they should just be brushes to save on entity count.

NOTSTACKED prevents the crate from causing crates above it to fall. Great for crates on shelves.

"health" sets the crate's health. Default is 300

"debristype" sets the type of debris to spawn from the crate. Valid values are from 0 - ?. Default is 0

0: wooden crate 32 units to a side
1: wooden crate 64 units to a side
2: cardboard crate 16 units to a side
3: cardboard crate 32 units to a side
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

Thanx Powel.
Admin .MAP Forums
Image
Head above heels.
User avatar
MPowell1944
Moderator
Posts: 287
Joined: Thu Jan 09, 2003 7:06 am
Location: Woodstock, GA
Contact:

Post by MPowell1944 »

Not a problem. ;)
User avatar
mcunha98
Lieutenant Colonel
Posts: 384
Joined: Sat Jan 17, 2004 1:52 am
Location: Brasil
Contact:

Post by mcunha98 »

Bjarne BZR wrote:Its almost too simple to tutorialize:
- Make a brush
- Select it
- Make it a func_crate
- Done.

- To see what extra stuff you can do: read the description text in the entity dialog ( the one you get by pressing "n" )
Thanks !!!!
Work fine
Post Reply