This article's documentation is for anything that uses the Source engine. Click here for more information.

ammobox_9mm

From Valve Developer Community
Jump to navigation Jump to search
English (en)Translate (Translate)

ammobox_9mm is a point entity available in No More Room in Hell No More Room in Hell.

Entity Description

The ammobox_9mm is a box of ammo used for a few pistols and smg found in No More Room in Hell, such as the fa_m92fs, fa_glock17 and fa_mp5a3. These are usually scattered around maps and found in Supply Crates.

KeyValues

Name (targetname) <string>
The name that other entities refer to this entity by.
Entity Scripts (vscripts) <string>
Name(s) of script files that are executed after all entities have spawned.
Script think function (thinkfunction) <string>
Name of a function in this entity's script scope which will be called automatically.
Pitch Yaw Roll (Y Z X) (angles) <angles>
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.
Ammo Fill Min (ammo_fill_pct_min) <integer>
Spawned item will spawn with ammo amount at least this percent of capacity.
Ammo Fill Max (ammo_fill_pct_max) <integer>
Spawned item will spawn with ammo amount at most this percent of capacity.

Flags

Disable Motion : [1]
Disables the physics system from acting upon on this item.

Inputs

Kill
Kills the entity. Can cause issues if killed while in a player's inventory.

Outputs

OnPlayerDrop
Fires when a player drops this ammo.
OnPlayerPickup
Fires when a player picks up this ammo.
OnUser1 to OnUser4
Fired in response to the FireUser inputs.