Item crate: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 8: Line 8:
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==  
{{KV|Script Preset |integer| The preset props that will fall out of the crate upon breaking.}}
{{KV|Script Preset |choices| The preset props that will fall out of the crate upon breaking.}}
(See [[item_item_crate]] for the rest of the keyvalues)
(See [[item_item_crate]] for the rest of the keyvalues)
{{note | {{bms|4}} does not have [[item_dynamic_resupply]], instead, you will have to manually input what items you want under the "Spawn on break" keyvalue.}}
{{note | {{bms|4}} does not have [[item_dynamic_resupply]], instead, you will have to manually input what items you want under the "Spawn on break" keyvalue.}}

Revision as of 08:18, 21 February 2024

Black Mesa Level Aesthetics

Stub

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

Not to be confused with item_item_crate.

item_crate is a point 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.

Tip.pngTip: The item_battery and item_healthkit from Half-Life 2 Half-Life 2 has the same function as the same two entities in Black Mesa Black Mesa, they just have different models.
Note.pngNote: 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, 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.

Keyvalue

Script Preset ([todo internal name (i)]) <choices>
The preset props that will fall out of the crate upon breaking.

(See item_item_crate for the rest of the keyvalues)

Note.pngNote: Black Mesa Black Mesa does not have item_dynamic_resupply, instead, you will have to manually input what items you want under the "Spawn on break" keyvalue.