<?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_BEAMENTS</id>
	<title>TE BEAMENTS - 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_BEAMENTS"/>
	<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=TE_BEAMENTS&amp;action=history"/>
	<updated>2026-04-24T20:54:39Z</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_BEAMENTS&amp;diff=1310&amp;oldid=prev</id>
		<title>Outerbeast: Created page with &quot;An additive sprite beam between two moving entities. frame &lt;pre&gt; void te_beaments(CBaseEntity@ start, CBaseEntity@ end,  	string sprite=&quot;sprites/laser...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=TE_BEAMENTS&amp;diff=1310&amp;oldid=prev"/>
		<updated>2025-04-05T18:43:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;An additive sprite beam between two moving entities. &lt;a href=&quot;/File:TE_BEAMENTS.gif&quot; title=&quot;File:TE BEAMENTS.gif&quot;&gt;frame&lt;/a&gt; &amp;lt;pre&amp;gt; void te_beaments(CBaseEntity@ start, CBaseEntity@ end,  	string sprite=&amp;quot;sprites/laser...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;An additive sprite beam between two moving entities.&lt;br /&gt;
[[File:TE_BEAMENTS.gif|frame]]&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
void te_beaments(CBaseEntity@ start, CBaseEntity@ end, &lt;br /&gt;
	string sprite=&amp;quot;sprites/laserbeam.spr&amp;quot;, int frameStart=0, &lt;br /&gt;
	int frameRate=100, int life=10, int width=32, int noise=1, &lt;br /&gt;
	RGBA c=RGBA_PURPLE, int scroll=32,&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_BEAMENTS);&lt;br /&gt;
	m.WriteShort(start.entindex());&lt;br /&gt;
	m.WriteShort(end.entindex());&lt;br /&gt;
	m.WriteShort(g_EngineFuncs.ModelIndex(sprite));&lt;br /&gt;
	m.WriteByte(frameStart);&lt;br /&gt;
	m.WriteByte(frameRate);&lt;br /&gt;
	m.WriteByte(life);&lt;br /&gt;
	m.WriteByte(width);&lt;br /&gt;
	m.WriteByte(noise);&lt;br /&gt;
	m.WriteByte(c.r);&lt;br /&gt;
	m.WriteByte(c.g);&lt;br /&gt;
	m.WriteByte(c.b);&lt;br /&gt;
	m.WriteByte(c.a); // actually brightness&lt;br /&gt;
	m.WriteByte(scroll);&lt;br /&gt;
	m.End();&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* CBaseEntity@	start	Entity target for the beam to follow (start)&lt;br /&gt;
* CBaseEntity@	end	Entity target for the beam to follow (end)&lt;br /&gt;
* string	sprite	Sprite used to display the beam&lt;br /&gt;
* uint8	frameStart	Starting frame for the beam sprite&lt;br /&gt;
* uint8	frameRate	Frame rate of the beam sprite (FPS * 0.1)&lt;br /&gt;
* uint8	life	How long to display the beam (seconds * 0.1)&lt;br /&gt;
* uint8	width	Width of the beam (units * 0.1)&lt;br /&gt;
* uint8	noise	Noise amplitude (units * 0.1)&lt;br /&gt;
* RGBA	c	Beam color and brightness&lt;br /&gt;
* uint8	scroll	Scroll rate of the beam sprite&lt;/div&gt;</summary>
		<author><name>Outerbeast</name></author>
	</entry>
</feed>