Weapon p90

From Valve Developer Community

Table of contents

Entity Description

The FN P90 (aka ES C90) uses ammo_57mm ammunition.

Keyvalues

Defines the name that other entities refer to this entity by.
  • hammerid [New with Orange Box]
<integer readonly> This id is used for debugging purposes in Hammer.
Pitch Yaw Roll (Y Z X)
This entity's angular orientation in the world (also used for angular effect entities).
  • ammo
<int> Amount of reserve ammo to be added. Fallback value is 0. Key must be added manually.

Flags

  • 1 : Start Constrained
Prevents the model from moving.

Inputs

  • Kill
Removes this entity from the world.
Removes this entity and all its children from the world.
  • AddOutput <string>
Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
Format: <key> <value>
Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>
Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.

Outputs

Fired in response to FireUser1-4 inputs. See User Inputs and Outputs.
!activator = activator
  • OnPlayerUse
Fires when the player +uses this weapon.
!activator = player
  • OnPlayerPickup
Fires when a player picks up this weapon.
!activator = player