Point energy ball launcher: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
(cleanup)
Line 2: Line 2:


==Entity Description==
==Entity Description==
A point entity that's spawn and launch an ernergy ball.
An entity that spawns and launches an energy ball periodically.


==Availability==
This point entity is exclusive to [[Portal]].


==Keyvalues==
==Keyvalues==
Line 14: Line 16:
: <float> The time in seconds the ball will live before self-destructing. A negative value will give infinite life.
: <float> The time in seconds the ball will live before self-destructing. A negative value will give infinite life.
* '''Min life after portal transition'''
* '''Min life after portal transition'''
: <float> When energy balls created by this launcher pass through a portal and their life is refreshed to be this number at minimum.
: <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'''
* '''ballcount'''
: <integer> This is how many balls will be bouncing around inside the spawner.
: <integer> The amount of balls bouncing around inside the spawner.
* '''minspeed'''
* '''minspeed'''
: <float> The minimum speed of balls that fly in the spawner.
: <float> The minimum speed of balls spawned.
* '''maxspeed'''
* '''maxspeed'''
: <float> The maximum speed of balls that fly in the spawner.
: <float> The maximum speed of balls spawned.
* '''ballradius'''
* '''ballradius'''
: <float> The radius of the energy balls.
: <float> The radius of the energy balls.

Revision as of 14:36, 11 October 2007

Template:Wrongtitle

Entity Description

An entity that spawns and launches an energy ball periodically.

Availability

This point entity is exclusive to Portal.

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

Launch a ball from the spawner.

Outputs

Fire when a ball was launched.