Point energy ball launcher

From Valve Developer Community
Revision as of 13:47, 12 May 2011 by PluMGMK (talk | contribs)
Jump to navigation Jump to search

Template:Portal series point

Entity description

An entity that spawns and launches an energy ball periodically.

Note.pngNote:In Portal 2, the models and materials for the actual balls are missing and must be copied from HL2.

Keyvalues

Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Pitch Yaw Roll (Y Z X) (angles) <QAngle>
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.
Global:
Global Entity Name (globalname) <string>
Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with globalnames matching entities in the previous map will have the previous map's state copied over their state.
  • Ball Lifetime
<float> The time in seconds the ball will live before self-destructing. A negative value will give infinite life.
  • Min life after portal transition
<float> When energy balls created by this launcher pass, if the remaining lifespan of the ball is less than this value, the lifespan will reset to this value.
  • ballcount
<integer> The amount of balls bouncing around inside the spawner.
  • minspeed
<float> The minimum speed of balls spawned.
  • maxspeed
<float> The maximum speed of balls spawned.
  • ballradius
<float> The radius of the energy balls.
  • balltype
<choices>
Literal Value Description
0 Combine Energy Ball 1
1 Combine Energy Ball 2
2 Combine Energy Ball 3
  • ballrespawntime
<float> The energy balls' respawn time.

Inputs

  • EnableDisable:
Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.
  • LaunchBall
Launch a ball from the spawner.

Outputs

  • OnPostSpawnBall
Fire when a ball was launched.

See also