item_ammo_crate
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.
| CItem_AmmoCrate |
item_ammo_crate is a model 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.
Warning:The fgd defaults to pistol, which are only available in
Half-Life 2: Episode Two.Half Life 2 series. - item_ammo_pistol (0) - (only in
)
- item_ammo_smg1 (1)
- item_ammo_ar2 (2)
- item_rpg_round (3)
- item_box_buckshot (4) - (only in
)
- weapon_frag (5)
- item_ammo_357 (6) - Uses SMG crate, but provides correct ammo. Can confuse players! Fixed in
Mapbase.
- item_ammo_crossbow (7) - Uses SMG crate, but provides correct ammo. Can confuse players! Fixed in
Mapbase.
- item_ammo_ar2_altfire (8) - Exact same crate as regular AR2 ammo. Can confuse players! Fixed in
Mapbase.
- item_ammo_smg1_grenade (9) - (only in
) Different crate model, with grenades inside, but icon is still SMG. Can confuse players!
- weapon_slam (10) - (only in
)
Black Mesa. - 9mm Rounds (9mm) - ammo type used for weapon_mp5 (main ammo), weapon_glock and weapon_assassin_glock.
- 357 (357) - ammo type used for weapon_357.
- Bolts (bolt) - ammo type used for weapon_crossbow.
- Buckshot (buckshot) - ammo type used for weapon_shotgun.
- Energy (energy) - ammo type used for weapon_gluon and weapon_tau.
- MP5 Grenade (grenade_mp5) - ammo type used for weapon_mp5 (secondary ammo).
- RPG (grenade_rpg) - ammo type used for weapon_rpg.
- Frag Grenades (grenade_frag) - ammo type used for weapon_frag.
- Satchels (grenade_satchel) - ammo type used for weapon_satchel.
- Tripmines (grenade_tripmine) - ammo type used for weapon_tripmine.
- Snark (snark) - not in FGD, ammo type used for weapon_snark.
- Hornet (grenade_hornet) - not in FGD, ammo type used for weapon_hivehand.
.50 BMG (50cal) - not in FGD, not used for any of the weapons that can be picked up by the player by default.
- Sentry (sentry) - not in FGD, not used for any of the weapons that can be picked up by the player by default.
- Sniper Round (SniperRound) - not in FGD, not used for any of the weapons that can be picked up by the player by default.
- Sniper Penetrated Round (SniperPenetratedRound) - not in FGD, not used for any of the weapons that can be picked up by the player by default.
Note:Not using one of these will result entity disappear.
Bug:Player will not get a new weapon (weapon_tripmine, weapon_satchel, weapon_frag or weapon_snark) if didn't pick up it before. Interaction with this entity adds the ammo amount, but not giving anything. - item_ammo_pistol (0) - (only in
- 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
- !activator = the player that used this
!caller = this entity - Fires when used by the player.
See also
- Crates - For basic crates