Item crate: Difference between revisions
Jump to navigation
Jump to search
Tip:Commonly used models for the item_crate are models\props_generic\bm_supplycrate01.mdl, models\props_generic\crate_48x48.mdl, models\props_blackmesa\tarp_crate.mdl, and models/props_generic/bm_supplycrate01.mdl.
Bug:The items that appear have several bugs, which may make you prefer to use your own workarounds with env_entity_maker and point_template.
DavidSon713 (talk | contribs) (Created page with "{{Stub}} {{This is a|point|name=item_weapon_mp5|game=Black Mesa}}") |
MyGamepedia (talk | contribs) No edit summary |
||
(65 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{CDA|CItem_Crate|CPhysicsProp|CBreakableProp|CBaseProp|CBaseAnimating|CBaseEntity|}} | ||
{{ | [[File: item_crate__bm_supplycrate01.png | right | 180px]] | ||
{{this is a|model entity|name=item_crate|game=Black Mesa}} It's a physics prop that can be configured to spawn junk preset and entities when broken. Used in the game for crates with books, toys, electronics, snacks, tools, laboratory items, military items. It is also used for crates with useful items for the {{ent|player}}, it is usually [[Item battery (Black Mesa)|batteries]] and [[Item healthkit (Black Mesa)|healthkits]]. | |||
{{tip|Commonly used models for the [[item_crate]] are ''models\props_generic\bm_supplycrate01.mdl'', ''models\props_generic\crate_48x48.mdl'', ''models\props_blackmesa\tarp_crate.mdl'', and ''models/props_generic/bm_supplycrate01.mdl''.}} | |||
==Keyvalue== | |||
{{KV|Spawn on break|intn=spawnonbreak|string|Spawn entities using a comma (or space) separated list. For example: "{{ent|item_battery}},{{ent|item_grenade_mp5}},{{ent|item_weapon_mp5}}".}} | |||
{{KV|Script Preset|intn=scriptpreset|choices|The preset props that will fall out of the crate upon breaking. Spawn entities using a section from [[proplist.txt]], you also can add your own by editing the file. | |||
{{expand|title=Full list.| | |||
* '''"canteen"''' - Spawns canteen related items, (water bottles, vacuum flasks, etc.) | |||
* '''"joke"''' - Spawns eyeballs and prank toys. | |||
* '''"junk"''' - Spawns a bunch of junk, (broken vent covers, locks, and other junk.) | |||
* '''"lab"''' - Spawns lab related items. | |||
* '''"lab2"''' - Spawns other types of lab related items | |||
* '''"military"''' - Spawns military related items, (tools, etc.) | |||
* '''"military_big"''' - Spawns military related items for a bigger type of crate, (Alice packs, tools, ammo crates.) | |||
* '''"office"''' - Spawns office related items, (copy paper, books, etc..) | |||
* '''"tech"''' - Spawns electronics, (motherboards, soldering irons, etc.) | |||
* '''"tech2"''' - Spawns a variety of electronics. | |||
* '''"cleaning_products"''' - Spawns cleaning products, (spray bottles, spray cleaners, etc.) | |||
* '''"paint_supplies"''' - Spawns paint cans and buckets.- | |||
* '''"books_small"''' - Spawns small amounts of books. | |||
* '''"books_large"''' - Spawns large amounts of books. | |||
* '''"snacks"''' - Spawns all kinds of snacks, (chips, candy, juice boxes.) | |||
* '''"computer_supplies"''' - Spawns a monitor, computer tower, and other computer supplies. | |||
* '''"tools"''' - Spawns tools, (pliers, wrenches, hammers, drills, etc.) | |||
}} | |||
{{bug|hidetested=1|The items that appear have several bugs, which may make you prefer to use your own workarounds with {{ent|env_entity_maker}} and {{ent|point_template}}. | |||
In [[Steam]] versions but not in the mod version: | |||
* Can't be picked up. | |||
* Doesn't collide with dynamic models and most brush entities. | |||
* Disabled motion after a few seconds. | |||
* Disappear after save reload. | |||
In the mod version only: | |||
* Disabled motion after save reload. | |||
* Crash on save reload if was picked up. | |||
In both versions: | |||
* Doesn't work with [[Level Transitions|level transition]]. | |||
}} | |||
}} | |||
==See Also== | |||
* {{ent|item_ammo_crate}} - metal crate with ammo for weapons |
Latest revision as of 08:56, 21 July 2025
![]() |
---|
CItem_Crate |
item_crate
is a model entity available in Black Mesa. It's a physics prop that can be configured to spawn junk preset and entities when broken. Used in the game for crates with books, toys, electronics, snacks, tools, laboratory items, military items. It is also used for crates with useful items for the player, it is usually batteries and healthkits.

Keyvalue
- Spawn on break (spawnonbreak) <string>
- Spawn entities using a comma (or space) separated list. For example: "item_battery,item_grenade_mp5,item_weapon_mp5".
- Script Preset (scriptpreset) <choices>
- The preset props that will fall out of the crate upon breaking. Spawn entities using a section from proplist.txt, you also can add your own by editing the file.
|

In Steam versions but not in the mod version:
- Can't be picked up.
- Doesn't collide with dynamic models and most brush entities.
- Disabled motion after a few seconds.
- Disappear after save reload.
In the mod version only:
- Disabled motion after save reload.
- Crash on save reload if was picked up.
In both versions:
- Doesn't work with level transition.
See Also
- item_ammo_crate - metal crate with ammo for weapons