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 (→Outputs: {{plact}}) |
m (Format) |
||
Line 7: | Line 7: | ||
This large crate contains an ''unlimited'' supply of a certain type of ammo (specified by ''AmmoType''). The player can open it as many times as he'd like, by pressing his +use key, and max out this type of ammo. | This large crate contains an ''unlimited'' supply of a certain type of ammo (specified by ''AmmoType''). The player can open it as many times as he'd like, by pressing his +use key, and max out this type of ammo. | ||
{{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.}} | |||
==Keyvalues== | ==Keyvalues== | ||
Line 16: | Line 15: | ||
: <choices> | : <choices> | ||
:{| | :{| | ||
! Literal Value || Ammunition || | ! Literal Value || Ammunition || Functions | ||
|- | |- | ||
| 0 || [[item_ammo_pistol]] || No | | 0 || [[item_ammo_pistol]] || No | ||
Line 36: | Line 35: | ||
| 8 || [[item_ammo_ar2_altfire]] || Yes | | 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== | ==Inputs== |
Revision as of 09:17, 26 April 2006
Entity Description
This large crate contains an unlimited supply of a certain type of ammo (specified by AmmoType). The player can open it as many times as he'd like, by pressing his +use key, and max out this type of ammo.

Keyvalues
- Template:Kv targetname
- Template:Kv angles
- AmmoType
- <choices>
Literal Value Ammunition Functions 0 item_ammo_pistol No 1 item_ammo_smg1 Yes 2 item_ammo_ar2 Yes 3 item_rpg_round Yes 4 item_box_buckshot No 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
- Template:O targetname
- OnUsed
- Fires when +used by the player. Template:Plact