Point tesla: Difference between revisions
Jump to navigation
Jump to search
m (typo) |
(Cleanup) |
||
Line 1: | Line 1: | ||
{{ | {{base point|point_tesla}} | ||
[[File:Point_Tesla.jpg|thumb|260px|An active point_tesla]] | |||
==Entity Description== | ==Entity Description== | ||
An entity that creates lightning arcs around its origin similar to the ones created by Nicola Tesla's famous [http://en.wikipedia.org/wiki/Tesla_coil Tesla Coil] invention. | An entity that creates lightning arcs around its origin similar to the ones created by Nicola Tesla's famous [http://en.wikipedia.org/wiki/Tesla_coil Tesla Coil] invention. | ||
Line 12: | Line 10: | ||
{{in code|class=class_c_tesla.html CTesla|file=tesla_8cpp-source.html tesla.cpp}} | {{in code|class=class_c_tesla.html CTesla|file=tesla_8cpp-source.html tesla.cpp}} | ||
==Keyvalues== | == Keyvalues == | ||
{{KV|Source Entity|string|If specified, tesla lightning will originate from the specified entity. Otherwise, they originate from this entity.}} | |||
{{KV|Sound Name|string|Sound to be played whenever lightning is created.}} | |||
{{KV|Sprite Name|sprite|Material to use for the tesla lightning beams.}} | |||
{{KV|Color|color255|Beam color.}} | |||
{{KV|Radius|integer|Radius around the origin to find a point to strike with a tesla lightning beam.}} | |||
{{KV|Min # of Beams|integer|Minimum number of tesla lightning beams to create when creating an arc.}} | |||
{{KV|Max # of Beams|integer|Maximum number of tesla lightning beams to create when creating an arc.}} | |||
{{KV|Min Beam Width|string|Minimum width of the tesla lightning beams.}} | |||
{{KV|Max Beam Width|string|Maximum width of the tesla lightning beams.}} | |||
{{KV|Min Time Visible|string|Minimum lifetime of the tesla lightning beams.}} | |||
{{KV|Max Time Visible|string|Maximum lifetime of the tesla lightning beams.}} | |||
{{KV|Min Time Between Arcs|string|Minimum time delay between random arcing.}} | |||
{{KV|Max Time Between Arcs|string|Maximum time delay between random arcing.}} | |||
{{KV Targetname}} | |||
{{KV Parentname}} | |||
==Inputs== | == Inputs == | ||
{{IO|TurnOn|Turn emitter on.}} | |||
{{IO|TurnOff|Turn emitter off.}} | |||
{{IO|DoSpark|Force a single arc.}} | |||
{{I Targetname}} | |||
{{I Parentname}} | |||
==Outputs== | == Outputs == | ||
{{O Targetname}} |
Revision as of 10:22, 7 June 2011
Entity Description
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
- Source Entity ([todo internal name (i)]) <string>
- If specified, tesla lightning will originate from the specified entity. Otherwise, they originate from this entity.
- Radius ([todo internal name (i)]) <integer>
- Radius around the origin to find a point to strike with a tesla lightning beam.
- Min # of Beams ([todo internal name (i)]) <integer>
- Minimum number of tesla lightning beams to create when creating an arc.
- Max # of Beams ([todo internal name (i)]) <integer>
- Maximum number of tesla lightning beams to create when creating an arc.
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
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.
Inputs
- TurnOn
- Turn emitter on.
- TurnOff
- Turn emitter off.
- DoSpark
- Force a single arc.
Parentname:
- SetParent <string >
- Move with this entity. See Entity Hierarchy (parenting).
- SetParentAttachment <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 <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.