Item ammo crate: Difference between revisions
Jump to navigation
Jump to search

Placement Tip:This entity should not be placed in areas with many opponents, since this crate provides the player with a big advantage against any opponents in the area.
Note:It can be used if it received damage and if player holds weapon crowbar. This means that a player can open it with the crowbar or with grenades if holding crowbar, distance doesn't matter.
Warning:The fgd defaults to pistol, which are only available in
Half-Life 2: Episode Two.
MyGamepedia (talk | contribs) (You may want to remove this, I won't mind if you'll do due to the link in Class hierarchy.) |
MyGamepedia (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{Lang|title = item_ammo_crate}} | {{Lang|title = item_ammo_crate}} | ||
{{CD|CItem_AmmoCrate|file1=item_ammo.cpp}} | {{CD|CItem_AmmoCrate|file1=item_ammo.cpp}} | ||
[[File: | [[File:item_ammo_crate_smg1.png|right|200px]] | ||
[[File:item_ammo_crate_bms.png|right|200px]] | |||
{{this is a|point entity|name=item_ammo_crate|game=Half-Life 2|game1 | {{this is a|point entity|name=item_ammo_crate|game=Half-Life 2 series|game1=Black Mesa}} This entity places a large crate containing an ''unlimited'' supply of a certain type of ammo (specified by '''Ammo Type'''). The {{ent|player}} can open it as many times as desired, by pressing the {{Ent|+use}} key ({{Key|E}} by default), and get a complete refill of the specified ammo type. Most inputs, outputs and properties are same as [[CBaseAnimating]]. | ||
{{ModernPlacementTip|This entity should not be placed in areas with many opponents, since this crate provides the player with a big advantage against any opponents in the area.}} | {{ModernPlacementTip|This entity should not be placed in areas with many opponents, since this crate provides the player with a big advantage against any opponents in the area.}} | ||
{{note|It can be used if it received damage and if player holds {{ent|weapon crowbar}}. This means that a player can open it with the crowbar or with grenades if holding crowbar, distance doesn't matter.}} | |||
__NOTOC__ | __NOTOC__ | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Ammo Type|intn=AmmoType|choices|Decides which ammo will be inside the crate. | {{KV|Model|intn=model|studio|Model to use for this entity|only=bms}} | ||
{{KV|Ammo Type|intn=AmmoType|choices|Decides which ammo will be inside the crate. | |||
{{warning|The [[fgd]] defaults to pistol, which are only available in {{hl2ep2|4}}.}} | |||
}} | |||
{{important|Used crate model depends on value from here {{not|{{bms}}}}.}} | |||
:{| class=standard-table | :{| class=standard-table | ||
! Value || Ammo Type || Comment | ! Value || Ammo Type || Comment | ||
Line 34: | Line 41: | ||
| 9 || [[item_ammo_smg1_grenade]] || {{hl2ep2|only}} Different crate model, with grenades inside, but icon is still SMG. Can confuse players! | | 9 || [[item_ammo_smg1_grenade]] || {{hl2ep2|only}} Different crate model, with grenades inside, but icon is still SMG. Can confuse players! | ||
|} | |} | ||
{{KV|CanMove|intn=isdynamicmoving|bool|Doesn't work. Mentioned only once in ''bm_c4a4a''. It was probably planned to provide movement to the crate for one of the rooms.|only=bms}} | |||
{{KV|Ammo Count|intn=ammocount|integer|Amount of specified ammo to give.|only=bms}} | |||
==Outputs== | ==Outputs== |
Revision as of 03:38, 18 May 2025


![]() |
---|
CItem_AmmoCrate |
![]() |
item_ammo_crate
is a point entity available in Half-Life 2 series and
Black Mesa. This entity places a large crate containing an unlimited supply of a certain type of ammo (specified by Ammo Type). The player can open it as many times as desired, by pressing the +use key (E by default), and get a complete refill of the specified ammo type. Most inputs, outputs and properties are same as CBaseAnimating.


Keyvalues
- Model (model) <model path> (only in
)
- Model to use for this entity
- Ammo Type (AmmoType) <choices>
- Decides which ammo will be inside the crate.


Value Ammo Type Comment 0 item_ammo_pistol (only in )
1 item_ammo_smg1 2 item_ammo_ar2 3 item_rpg_round 4 item_box_buckshot (only in )
5 weapon_frag 6 item_ammo_357 Uses SMG crate, but provides correct ammo. Can confuse players! 7 item_ammo_crossbow Uses SMG crate, but provides correct ammo. Can confuse players! 8 item_ammo_ar2_altfire Exact same crate as regular AR2 ammo. Can confuse players! 9 item_ammo_smg1_grenade (only in ) Different crate model, with grenades inside, but icon is still SMG. Can confuse players!
- CanMove (isdynamicmoving) <boolean> (only in
)
- Doesn't work. Mentioned only once in bm_c4a4a. It was probably planned to provide movement to the crate for one of the rooms.
- Ammo Count (ammocount) <integer> (only in
)
- Amount of specified ammo to give.
Outputs
- OnUsed
- Fires when used by the player.
See also
- Crates - For basic crates