Point tesla

From Valve Developer Community
Revision as of 22:35, 27 September 2010 by Thelonesoldier (talk | contribs) (typo)
Jump to navigation Jump to search

Template:Wrongtitle

Template:Base point

Entity Description

An active point_tesla

An entity that creates lightning arcs around its origin similar to the ones created by Nicola Tesla's famous Tesla Coil invention.

Availability

Template:In game Template:Game-base Template:In code

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.
  • m_SourceEntityName
<target_destination> If specified, tesla lightning will originate from the specified entity. Otherwise, they originate from this entity.
  • m_SoundName
<sound> Sound to be played whenever lightning is created.
  • texture
<sprite> Material to use for the tesla lightning beams. (sprites/physbeam.vmt)
  • m_Color
#000000 Color.
  • m_flRadius
<float> Radius around the origin to find a point to strike with a tesla lightning beam.
  • beamcount_min
<integer> Minimum number of tesla lightning beams to create when creating an arc.
  • beamcount_max
<integer> Maximum number of tesla lightning beams to create when creating an arc.
  • thick_min
<float> Minimum width of the tesla lightning beams.
  • thick_max
<float> Maximum width of the tesla lightning beams.
  • lifetime_min
<float> Minimum lifetime of the tesla lightning beams.
  • lifetime_max
<float> Maximum lifetime of the tesla lightning beams.
  • interval_min
<float> Minimum time delay between random arcing.
  • interval_max
<float> Maximum time delay between random arcing.

Inputs

Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <stringRedirectInput/string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.
  • TurnOn
Turn emitter on.
  • TurnOff
Turn emitter off.
  • DoSpark
Force a single arc.

Outputs