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.
(-added class hierarchy, cleanup) |
(→Keyvalues: Updates list, because its needlessly complicated.) |
||
Line 11: | Line 11: | ||
==Keyvalues== | ==Keyvalues== | ||
{{KV Targetname}} | {{KV Targetname}} | ||
{{KV|Ammo Type|intn=AmmoType|choices|Decides which ammo will be inside the crate.}} | {{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 EP2.}} | ||
:{| class=standard-table | :{| class=standard-table | ||
! | ! Value || Ammo Type || Comment | ||
|- | |- | ||
| 0 || [[item_ammo_pistol]] || {{ | | 0 || [[item_ammo_pistol]] || {{hl2ep2|only}} | ||
|- | |- | ||
| 1 || [[item_ammo_smg1]] || | | 1 || [[item_ammo_smg1]] || | ||
|- | |- | ||
| 2 || [[item_ammo_ar2]] || | | 2 || [[item_ammo_ar2]] || | ||
|- | |- | ||
| 3 || [[item_rpg_round]] || | | 3 || [[item_rpg_round]] || | ||
|- | |- | ||
| 4 || [[item_box_buckshot]] || {{ | | 4 || [[item_box_buckshot]] || {{hl2ep2|only}} | ||
|- | |- | ||
| 5 || [[weapon_frag]] || | | 5 || [[weapon_frag]] || | ||
|- | |- | ||
| 6 || [[item_ammo_357]] || | | 6 || [[item_ammo_357]] || Uses SMG crate, but provides correct ammo. Can confuse players! | ||
|- | |- | ||
| 7 || [[item_ammo_crossbow]] || | | 7 || [[item_ammo_crossbow]] || Uses SMG crate, but provides correct ammo. Can confuse players! | ||
|- | |- | ||
| 8 || [[item_ammo_ar2_altfire]] || | | 8 || [[item_ammo_ar2_altfire]] || Exact same crate as regular AR2 ammo. Can confuse players! | ||
|- | |- | ||
| 9 || [[item_ammo_smg1_grenade]] || {{ | | 9 || [[item_ammo_smg1_grenade]] || {{hl2ep2|only}} Different crate model, with grenades inside, but icon is still SMG. Can confuse players! | ||
|} | |} | ||
==Outputs== | ==Outputs== |
Revision as of 08:43, 13 February 2025


![]() |
---|
CItem_AmmoCrate |
![]() |
item_ammo_crate
is a point entity available in Half-Life 2,
Half-Life 2: Episode One,
Half-Life 2: Episode Two, and
Half-Life 2: Deathmatch. 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.

Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Ammo Type (AmmoType) <choices>
- Decides which ammo will be inside the crate. Warning: the fgd defaults to pistol, which are only available in EP2.
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!
Outputs
- OnUsed
- Fires when
+use
d by the player.
See also
- Crates - For basic crates
Categories:
- TODO rewrite lang to LanguageBar
- CBaseAnimating
- Point entities
- Non-internal Half-Life 2 entities
- Half-Life 2 entities
- Half-Life 2 point entities
- Non-internal Half-Life 2: Episode One entities
- Half-Life 2: Episode One entities
- Half-Life 2: Episode One point entities
- Non-internal Half-Life 2: Episode Two entities
- Half-Life 2: Episode Two entities
- Half-Life 2: Episode Two point entities
- Non-internal Half-Life 2: Deathmatch entities
- Half-Life 2: Deathmatch entities
- Half-Life 2: Deathmatch point entities
- Items