Item crate: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(The ent is not in the game, so the note doesn't make sense to have for me.)
(Not the only.)
Line 2: Line 2:
{{Stub}}
{{Stub}}
{{this is a|point entity|name=item_crate|game=Black Mesa}} It can be configured to spawn items into the world when broken, like junk, tools, or electronics. They can also be used to spawn supplies such as ammo or an [[item_battery]] and [[item_healthkit]].
{{this is a|point entity|name=item_crate|game=Black Mesa}} It can be configured to spawn items into the world when broken, like junk, tools, or electronics. They can also be used to spawn supplies such as ammo or an [[item_battery]] and [[item_healthkit]].
{{note | [[item_crate]] is very similar to [[item_item_crate]]. The only difference is the "Script Preset" keyvalue, which allows you to have different groups of props fall out of the crate upon breaking. Two examples are the "military_big" preset and the "military" preset. Once broken, the "military_big" preset would drop lots of military-related items, such as ammo crates, backpacks, etc. that would only be able to fit into a larger type of crate.}}
Commonly used models for the [[item_crate]] are ''models\props_generic\bm_supplycrate01.mdl'', ''models\props_generic\crate_48x48.mdl'', and ''models\props_blackmesa\tarp_crate.mdl''.
Commonly used models for the [[item_crate]] are ''models\props_generic\bm_supplycrate01.mdl'', ''models\props_generic\crate_48x48.mdl'', and ''models\props_blackmesa\tarp_crate.mdl''.
==Keyvalue==  
==Keyvalue==  

Revision as of 08:59, 17 May 2025

Stub

This article or section is a stub. You can help by expanding it.

item_crate is a point entity available in Black Mesa Black Mesa. It can be configured to spawn items into the world when broken, like junk, tools, or electronics. They can also be used to spawn supplies such as ammo or an item_battery and item_healthkit. Commonly used models for the item_crate are models\props_generic\bm_supplycrate01.mdl, models\props_generic\crate_48x48.mdl, and models\props_blackmesa\tarp_crate.mdl.

Keyvalue

Script Preset ([todo internal name (i)]) <choices>
The preset props that will fall out of the crate upon breaking.
  1. "canteen" - Spawns canteen related items, (water bottles, vacuum flasks, etc.)
  2. "joke" - Spawns eyeballs and prank toys.
  3. "junk" - Spawns a bunch of junk, (broken vent covers, locks, and other junk.)
  4. "lab" - Spawns lab related items.
  5. "lab2" - Spawns other types of lab related items
  6. "military" - Spawns military related items, (tools, etc.)
  7. "military_big" - Spawns military related items for a bigger type of crate, (Alice packs, tools, ammo crates.)
  8. "office" - Spawns office related items, (copy paper, books, etc..)
  9. "tech" - Spawns electronics, (motherboards, soldering irons, etc.)
  10. "tech2" - Spawns a variety of electronics.
  11. "cleaning_products" - Spawns cleaning products, (spray bottles, spray cleaners, etc.)
  12. "paint_supplies" - Spawns paint cans and buckets.
  13. "books_small" - Spawns small amounts of books.
  14. "books_large" - Spawns large amounts of books.
  15. snacks - Spawns all kinds of snacks, (chips, candy, juice boxes.)
  16. computer_supplies - Spawns a monitor, computer tower, and other computer supplies.
  17. "tools" - Spawns tools, (pliers, wrenches, hammers, drills, etc.)