weapon_magnum

From Valve Developer Community
Jump to: navigation, search
List of SE1 entities
Weapon magnum.png

weapon_magnum is a point entity available in SiN Episodes SiN Episodes.In the primary and currently active magasin it loads to 20 bullets with an additional 80 bullets at the side, uses ammo type Item_ammo_magnum. For the secondary deadly shell of depleted uranium shots, it holds a maximum of 8 and uses ammo type item_ammo_duag. See SiN Episodes Weapons for more information about this weapon.

Keyvalues


Targetname:
Name (targetname) <string>
The targetname that other entities refer to this entity by.

Angles:
Pitch Yaw Roll (Y Z X) (angles) <angle>
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.

Weapon:

PrimaryAmmoCount (???) <integer>
Primary Ammo Count.
SecondaryAmmoCount (???) <integer>
Secondary Ammo Count.

Flags

  • 1 : Start Constrained. Prevents the model from moving.

Inputs

Base:

AddOutput <string>
Evaluates a keyvalue/output on this entity.
Format: <key> <value>
Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
FireUser1 to FireUser4
Fire the OnUser outputs; see User Inputs and Outputs.
Kill
Removes this entity and any entities parented to it from the world.
KillHierarchy
Functions the same as Kill, although this entity and any entities parented to it are killed on the same frame, being marginally faster than Kill.

Outputs

Weapon:

OnNPCPickup
Fires when an NPC picks up this weapon. (!activator is the NPC)
OnPlayerUse
Fires when the player +uses this weapon. (!activator is the player.)
OnPlayerPickup
Fires when a player picks up this weapon. (!activator is the player.)

Targetname:

OnUser1 to OnUser4
These Outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.
OnUse
Fired when the Use input is given.