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.
MyGamepedia (talk | contribs) |
MyGamepedia (talk | contribs) |
||
Line 6: | Line 6: | ||
==Keyvalue== | ==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|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. | {{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.) | * '''"canteen"''' - Spawns canteen related items, (water bottles, vacuum flasks, etc.) | ||
* '''"joke"''' - Spawns eyeballs and prank toys. | * '''"joke"''' - Spawns eyeballs and prank toys. | ||
Line 24: | Line 27: | ||
* '''"computer_supplies"''' - Spawns a monitor, computer tower, and other computer supplies. | * '''"computer_supplies"''' - Spawns a monitor, computer tower, and other computer supplies. | ||
* '''"tools"''' - Spawns tools, (pliers, wrenches, hammers, drills, etc.) | * '''"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}}. | {{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: | In [[Steam]] versions but not in the mod version: |
Revision as of 03:41, 18 May 2025
item_crate
is a point 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. Most inputs, outputs and properties are same as CPhysicsProp.
Represented by class CItem_Crate
.

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:
In both versions:
- Doesn't work with level transition.
See Also
- item_ammo_crate - metal crate with ammo for weapons