Item crate: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 4: Line 4:
{{This is a|point|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|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 | The item_battery and item_healthkit from {{hl2|4}} has the same function as the same two entities in {{bms|4}}, they just have different models.}}
{{note | The item_battery and item_healthkit from {{hl2|4}} has the same function as the same two entities in {{bms|4}}, they just have different models.}}
{{note | [[item_item_crate]] is very similar to [[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. One example is 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.}}
{{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, etc. that would only be able to fit into a larger type of crate.}}
==Keyvalues==
==Keyvalue==
{{KV|Item Type (ItemClass)|pointentityclass|[[Classname]] of the entity to spawn when the crate is broken.
{{KV|Item Type (ItemClass)|pointentityclass|[[Classname]] of the entity to spawn when the crate is broken.}}

Revision as of 15:01, 20 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.

Note.pngNote: 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.

Keyvalue

Item Type (ItemClass) ([todo internal name (i)]) <pointentityclass>
Classname of the entity to spawn when the crate is broken.