item_antigen_dispenser

From Valve Developer Community
Jump to: navigation, search
List of SE1 entities
Item antigen dispenser.png

item_antigen_dispenser is a point entity available in SiN Episodes SiN Episodes. It is a health charger which requires a prop_antigen_canister to function, gradually replenishes player health on use, until the canister is empty or the player is at full health. The dispenser can be set to either start with no canister in place or a canister with a specific percentage available for the player. The dispenser will always be able to give the amount of health points it has available, regardless of the difficulty setting. The antigen canister can be rejected from the dispenser by clicking its top display, allowing the user to replace an empty canister shell with another containing any amount of health found nearby.

Keyvalues

Name <string>
The targetname that other entities refer to this entity by.
Disabled <integer>
Should the dispenser be disabled?
Icon-Bug.pngBug:This does not seem to do anything.
Antigen <float>
Percentage full, if 0 then this dispenser can be loaded with an antigen container

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.

Inputs

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

OnCanisterInserted
Fires when an antigen canister is put into the dispenser.
OnCanisterEjected
Fires when an antigen canister is ejected from the dispenser.
OnUse
Fires when the Use input is given.

Base:

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.