Item ammo crate: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Wrote a correct description, and tested which types works and which doesn't. Pic on its way.)
Line 1: Line 1:
{{wrongtitle|title=item_ammo_crate}}
{{wrongtitle|title=item_ammo_crate}}
==Entity Description==
==Entity Description==
This crate breaks and spawns the specified ammunition entity
 
[[Image:item_ammo_crate.jpg|frame|right|An item_ammo_crate, containing SMG1 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.
 
Please note that this crate will provide the player with a big advantage against any opponents in the area.
 
 
==Keyvalues==
==Keyvalues==
* {{kv targetname}}
* {{kv targetname}}
Line 8: Line 16:
: <choices>
: <choices>
:{|
:{|
! Literal Value || Ammunition
! Literal Value || Ammunition || Works?
|-
|-
| 0 || [[item_ammo_pistol]]
| 0 || [[item_ammo_pistol]] || No
|-
|-
| 1 || [[item_ammo_smg1]]
| 1 || [[item_ammo_smg1]] || Yes
|-
|-
| 2 || [[item_ammo_ar2]]
| 2 || [[item_ammo_ar2]] || Yes
|-
|-
| 3 || [[item_rpg_round]]
| 3 || [[item_rpg_round]] || Yes
|-
|-
| 4 || [[item_box_buckshot]]
| 4 || [[item_box_buckshot]] || No
|-
|-
| 5 || [[weapon_frag]]
| 5 || [[weapon_frag]] || Yes
|-
|-
| 6 || [[item_ammo_357]]
| 6 || [[item_ammo_357]] || No
|-
|-
| 7 || [[item_ammo_crossbow]]
| 7 || [[item_ammo_crossbow]] || No
|-
|-
| 8 || [[item_ammo_ar2_altfire]]
| 8 || [[item_ammo_ar2_altfire]] || Yes
|}
|}
:Note that only some ammo types will work. The crates which appear in-game will work fine, but if a crate is set to "Pistol" for example, the crate will neither function nor appear. Instead a glowing red model saying "ERROR" will replace the crate.
:Note that 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==
* {{i targetname}}
* {{i targetname}}
==Outputs==
==Outputs==
* {{o targetname}}
* {{o targetname}}
* '''OnUsed'''
* '''OnUsed'''
: Fires when +used by the player.
: Fires when +used by the player.
[[Category:Entities]] [[Category:Items]]
[[Category:Entities]] [[Category:Items]]

Revision as of 10:35, 9 March 2006

Template:Wrongtitle

Entity Description

An item_ammo_crate, containing SMG1 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.

Please note that this crate will provide the player with a big advantage against any opponents in the area.


Keyvalues

<choices>
Literal Value Ammunition Works?
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
Note that 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

Fires when +used by the player.