Point tesla
From Valve Developer Community
This point-based entity is available in all Source games.
| Table of contents |
[edit]
Entity Description
An entity that creates tesla lightning arcs around its origin.
[edit]
Availability
This point-based entity is available in: all Source games.
In code it is represented by class CTesla (http://doxygen.page.needed/class_c_tesla.html), defined in tesla.cpp (http://doxygen.page.needed/tesla_8cpp-source.html).
[edit]
Keyvalues
- targetname <target_source>
- Defines the name that other entities refer to this entity by.
- hammerid [New with Orange Box]
- <integer readonly> This id is used for debugging purposes in Hammer.
- parentname <target_destination>
- Specifies the targetname of this entity's Parent in a movement hierarchy. Child entities mimic the movements of their Parent.
- 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
- <color255> 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.
[edit]
Inputs
- Kill
- Removes this entity from the world.
- Removes this entity and all its children from the world.
- AddOutput <string>
- Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
- Format:
<key> <value> - Format:
<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>
- Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.
- SetParent <target_destination>
- Changes the entity's parent in the movement hierarchy.
- SetParentAttachment <string>
- Change this entity to attach to a specific attachment point on its parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment.
- SetParentAttachmentMaintainOffset <string> [New with Episode One]
- Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. The entity will maintain it's position relative to the Parent's Origin and Angles at the time it is attached.
- Removes this entity from its current movement hierarchy.
- TurnOn
- Turn emitter on.
- TurnOff
- Turn emitter off.
- DoSpark
- Force a single arc.
[edit]
Outputs
- Fired in response to FireUser1-4 inputs. See User Inputs and Outputs.
- !activator = activator
