<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.svencoop.com/index.php?action=history&amp;feed=atom&amp;title=TE_LIGHTNING</id>
	<title>TE LIGHTNING - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.svencoop.com/index.php?action=history&amp;feed=atom&amp;title=TE_LIGHTNING"/>
	<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=TE_LIGHTNING&amp;action=history"/>
	<updated>2026-04-24T19:45:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.svencoop.com/index.php?title=TE_LIGHTNING&amp;diff=1345&amp;oldid=prev</id>
		<title>Outerbeast: Created page with &quot;Simpler version of TE_BEAMPOINTS (fewer parameters).  Note: Implementation of this effect seems to be bit buggy. The effect may not work immediately and some of its proper...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=TE_LIGHTNING&amp;diff=1345&amp;oldid=prev"/>
		<updated>2025-04-16T11:35:46Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Simpler version of &lt;a href=&quot;/TE_BEAMPOINTS&quot; title=&quot;TE BEAMPOINTS&quot;&gt;TE_BEAMPOINTS&lt;/a&gt; (fewer parameters).  Note: Implementation of this effect seems to be bit buggy. The effect may not work immediately and some of its proper...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Simpler version of [[TE_BEAMPOINTS]] (fewer parameters).&lt;br /&gt;
&lt;br /&gt;
Note: Implementation of this effect seems to be bit buggy. The effect may not work immediately and some of its properties are affected by other temporary effects. (Try firing gauss gun, hornet gun or displacer, and then create the effect. You will see what I mean...) Use TE_BEAMPOINTS instead.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
void te_lightning(Vector start, Vector end, &lt;br /&gt;
	string sprite=&amp;quot;sprites/laserbeam.spr&amp;quot;, int life=10, int width=32, &lt;br /&gt;
	int noise=1, &lt;br /&gt;
	NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)&lt;br /&gt;
{&lt;br /&gt;
	NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);&lt;br /&gt;
	m.WriteByte(TE_LIGHTNING);&lt;br /&gt;
	m.WriteCoord(start.x);&lt;br /&gt;
	m.WriteCoord(start.y);&lt;br /&gt;
	m.WriteCoord(start.z);&lt;br /&gt;
	m.WriteCoord(end.x);&lt;br /&gt;
	m.WriteCoord(end.y);&lt;br /&gt;
	m.WriteCoord(end.z);&lt;br /&gt;
	m.WriteByte(life);&lt;br /&gt;
	m.WriteByte(width);&lt;br /&gt;
	m.WriteByte(noise);&lt;br /&gt;
	m.WriteShort(g_EngineFuncs.ModelIndex(sprite));&lt;br /&gt;
	m.End();&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;vertical-align:middle;&amp;quot;&lt;br /&gt;
|- style=&amp;quot;font-weight:bold; text-align:center;&amp;quot;&lt;br /&gt;
! Type&lt;br /&gt;
! Name&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| Vector&lt;br /&gt;
| start&lt;br /&gt;
| Starting position of the beam&lt;br /&gt;
|-&lt;br /&gt;
| Vector&lt;br /&gt;
| end&lt;br /&gt;
| End position of the beam&lt;br /&gt;
|-&lt;br /&gt;
| string&lt;br /&gt;
| sprite&lt;br /&gt;
| Sprite used to display the beam&lt;br /&gt;
|-&lt;br /&gt;
| uint8&lt;br /&gt;
| life&lt;br /&gt;
| How long to display the beam (seconds * 0.1)&lt;br /&gt;
|-&lt;br /&gt;
| uint8&lt;br /&gt;
| width&lt;br /&gt;
| Width of the beam (units * 0.1)&lt;br /&gt;
|-&lt;br /&gt;
| uint8&lt;br /&gt;
| noise&lt;br /&gt;
| Noise amplitude (units * 0.1)&lt;br /&gt;
|}&lt;br /&gt;
[[Category:Scripting]]&lt;/div&gt;</summary>
		<author><name>Outerbeast</name></author>
	</entry>
</feed>