Page 1 of 1

Function Crate ????

Posted: Sun Mar 06, 2005 2:32 pm
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 ????

Posted: Sun Mar 06, 2005 4:53 pm
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" )

Posted: Sun Mar 06, 2005 6:29 pm
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

Posted: Sun Mar 06, 2005 6:34 pm
by Bjarne BZR
Thanx Powel.

Posted: Sun Mar 06, 2005 6:51 pm
by MPowell1944
Not a problem. ;)

Posted: Sun Mar 06, 2005 9:39 pm
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