point_tesla
Jump to navigation
Jump to search
Code classes:
CTesla
CBaseEntity
(all ents)
point_tesla
is a point entity present in all games except the Left 4 Dead games. It's a visual effect inspired by the electrical arcs of tesla coils.
Keyvalues[edit | edit source]
- Source Entity
(m_SourceEntityName)
<target_destination>
- Lightning effect will come from the specified entity instead of this one.
- Sound Name
(m_SoundName)
<sound>
- Sound to be played whenever lightning is created.
- Sprite Name
(texture)
<sprite>
- Texture to use for the electric beams.
- Color
(m_Color)
<color255>
- Color filter applied to the beams.
- Radius
(m_flRadius)
<float>
- Radius around the origin to find a point to strike with a lightning beam.
- Min # of Beams
(beamcount_min)
to Max # of Beams(beamcount_max)
<integer>
- How many beams to create.
- Min Time Visible
(lifetime_min)
to Max Time Visible(lifetime_max)
<float>
- How long beams last.
- Min Beam Width
(thick_min)
to Max Beam Width(thick_max)
<float>
- How thick beams are.
- Min Time Between Arcs
(interval_min)
to Max Time Between Arcs(interval_max)
<float>
- How often to spark.
- Start Enabled (Not in FGD)
(m_bOn)
<boolean>
- Emitter spawns activated.
Inputs[edit | edit source]
- TurnOn
- Enables the emitter; emits in intervals determined by Min/Max Time Between Arcs.
- TurnOff
- Disables the emitter.
- DoSpark
- Forces a single spark.