Item crate: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
==Keyvalue==  
==Keyvalue==  
{{KV|Spawn on break|intn=spawnonbreak|string|Spawn entities using a comma (or space) separated list.}}
{{KV|Spawn on break|intn=spawnonbreak|string|Spawn entities using a comma (or space) separated list.}}
{{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.}}
{{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.
:<ol start="0"><!--
* '''"canteen"''' - Spawns canteen related items, (water bottles, vacuum flasks, etc.)
--><li> '''"canteen"''' - Spawns canteen related items, (water bottles, vacuum flasks, etc.) <!--
* '''"joke"''' - Spawns eyeballs and prank toys.
--><li> '''"joke"''' - Spawns eyeballs and prank toys. <!--
* '''"junk"''' - Spawns a bunch of junk, (broken vent covers, locks, and other junk.)
--><li> '''"junk"''' - Spawns a bunch of junk, (broken vent covers, locks, and other junk.) <!--
* '''"lab"''' - Spawns lab related items.
--><li> '''"lab"''' - Spawns lab related items. <!--
* '''"lab2"''' - Spawns other types of lab related items
--><li> '''"lab2"''' - Spawns other types of lab related items <!--
* '''"military"''' - Spawns military related items, (tools, etc.)
--><li> '''"military"''' - Spawns military related items, (tools, etc.) <!--
* '''"military_big"''' - Spawns military related items for a bigger type of crate, (Alice packs, tools, ammo crates.)
--><li> '''"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..)
--><li> '''"office"''' - Spawns office related items, (copy paper, books, etc..) <!--
* '''"tech"''' - Spawns electronics, (motherboards, soldering irons, etc.)
--><li> '''"tech"''' - Spawns electronics, (motherboards, soldering irons, etc.) <!--
* '''"tech2"''' - Spawns a variety of electronics.
--><li> '''"tech2"''' - Spawns a variety of electronics. <!--
* '''"cleaning_products"''' - Spawns cleaning products, (spray bottles, spray cleaners, etc.)
--><li> '''"cleaning_products"''' - Spawns cleaning products, (spray bottles, spray cleaners, etc.) <!--
* '''"paint_supplies"''' - Spawns paint cans and buckets.-
--><li> '''"paint_supplies"''' - Spawns paint cans and buckets. <!--
* '''"books_small"''' - Spawns small amounts of books.
--><li> '''"books_small"''' - Spawns small amounts of books. <!--
* '''"books_large"''' - Spawns large amounts of books.
--><li> '''"books_large"''' - Spawns large amounts of books. <!--
* '''"snacks"''' - Spawns all kinds of snacks, (chips, candy, juice boxes.)
--><li> '''"snacks"''' - Spawns all kinds of snacks, (chips, candy, juice boxes.) <!--
* '''"computer_supplies"''' - Spawns a monitor, computer tower, and other computer supplies.
--><li> '''"computer_supplies"''' - Spawns a monitor, computer tower, and other computer supplies. <!--
* '''"tools"''' - Spawns tools, (pliers, wrenches, hammers, drills, etc.)
--><li> '''"tools"''' - Spawns tools, (pliers, wrenches, hammers, drills, etc.) <!--
}}
</ol>

Revision as of 09:20, 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, models\props_blackmesa\tarp_crate.mdl, and models/props_generic/bm_supplycrate01.mdl.

Keyvalue

Spawn on break (spawnonbreak) <string>
Spawn entities using a comma (or space) separated list.
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.
  • "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.)