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.
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:item_ammo_crate}} | {{DISPLAYTITLE:item_ammo_crate}} | ||
[[Image:item_ammo_crate.jpg|thumb|250px|right|An item_ammo_crate, containing SMG1 ammo.]] | |||
{{hl2 point|item_ammo_crate}} | {{hl2 point|item_ammo_crate}} | ||
==Entity | ==Entity description== | ||
This entity places a large crate contains an ''unlimited'' supply of a certain type of ammo (specified by ''AmmoType''). The player can open it as many times as desired, by pressing the +[[use]] key, and max out this type of ammo. | |||
This | |||
{{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.}} | {{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.}} | ||
Line 47: | Line 45: | ||
==See also== | ==See also== | ||
[[Crates]] for basic crates | *[[Crates]] for basic crates | ||
[[Category:Items]] |
Revision as of 13:35, 15 January 2012
Entity description
This entity places a large crate contains an unlimited supply of a certain type of ammo (specified by AmmoType). The player can open it as many times as desired, by pressing the +use key, and max out this type of ammo.

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
- Pitch Yaw Roll (Y Z X) (angles) <QAngle>
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
- AmmoType
- <choices>
Literal Value Ammunition Functions 0 item_ammo_pistol No [Yes (Episode 2)] 1 item_ammo_smg1 Yes 2 item_ammo_ar2 Yes 3 item_rpg_round Yes 4 item_box_buckshot No [Yes (Episode 2)] 5 weapon_frag Yes 6 item_ammo_357 No 7 item_ammo_crossbow No 8 item_ammo_ar2_altfire Yes
Warning:Some crate models are missing, so only about half of these settings will work. If the game can't find the model for the AmmoType, the model will instead be replaced by a glowing red model saying "ERROR", and the crate will not work.
Inputs
Outputs
- OnUsed
- Fires when +used by the player. (!activator is the player.)
See also
- Crates for basic crates