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.
m (Changed parameters of {{this is a}} to comply with the updated version. This action was performed by a bot.) |
(-added class hierarchy, cleanup) |
||
Line 1: | Line 1: | ||
{{Lang|title = item_ammo_crate}} | {{Lang|title = item_ammo_crate}} | ||
{{CD|CItem_AmmoCrate|file1=item_ammo.cpp}} | |||
[[File:item_ammo_crate.png|right|300px]] | [[File:item_ammo_crate.png|right|300px]] | ||
Line 7: | Line 7: | ||
{{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.}} | ||
__NOTOC__ | |||
==Keyvalues== | ==Keyvalues== | ||
{{KV|Ammo Type | {{KV Targetname}} | ||
{{KV|Ammo Type|intn=AmmoType|choices|Decides which ammo will be inside the crate.}} | |||
:{| class=standard-table | :{| class=standard-table | ||
! Literal Value || Ammunition || Half-Life 2 || Episode 1 || Episode 2 | ! Literal Value || Ammunition || Half-Life 2 || Episode 1 || Episode 2 | ||
Line 37: | Line 36: | ||
|} | |} | ||
:{{warning|Some crate models are missing, so only about half of these settings will work. If the game can't find the model, the crate will not work.}} | :{{warning|Some crate models are missing, so only about half of these settings will work. If the game can't find the model, the crate will not work.}} | ||
==Outputs== | ==Outputs== | ||
{{IO|OnUsed|Fires when <code>+use</code>d by the player.}} | {{IO|OnUsed|Fires when <code>+use</code>d by the player.}} | ||
==See also== | ==See also== |
Revision as of 07:11, 1 July 2024


![]() |
---|
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.
Literal Value Ammunition Half-Life 2 Episode 1 Episode 2 0 item_ammo_pistol Unavailable Unavailable Available 1 item_ammo_smg1 Available Available Available 2 item_ammo_ar2 Available Available Available 3 item_rpg_round Available Available Available 4 item_box_buckshot Unavailable Unavailable Available 5 weapon_frag Available Available Available 6 item_ammo_357 Unavailable Unavailable Unavailable 7 item_ammo_crossbow Unavailable Unavailable Unavailable 8 item_ammo_ar2_altfire Available Available Available 9 item_ammo_smg1_grenade Unavailable Unavailable Available
Warning:Some crate models are missing, so only about half of these settings will work. If the game can't find the model, the crate will not work.
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