<?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_DECAL</id>
	<title>TE DECAL - 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_DECAL"/>
	<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=TE_DECAL&amp;action=history"/>
	<updated>2026-05-16T06:07:50Z</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_DECAL&amp;diff=1349&amp;oldid=prev</id>
		<title>Outerbeast: Created page with &quot;Applies a decal to a world or entity surface. Uses texture indices 0 to 255. TE_DECAL &lt;code&gt;void CUtility::DecalTrace(TraceResult&amp; in trace, int iD...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=TE_DECAL&amp;diff=1349&amp;oldid=prev"/>
		<updated>2025-04-16T11:44:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Applies a decal to a world or entity surface. Uses texture indices 0 to 255. &lt;a href=&quot;/File:TE_DECAL.gif&quot; title=&quot;File:TE DECAL.gif&quot;&gt;frame|TE_DECAL&lt;/a&gt; &amp;lt;code&amp;gt;void CUtility::DecalTrace(TraceResult&amp;amp; in trace, int iD...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Applies a decal to a world or entity surface. Uses texture indices 0 to 255.&lt;br /&gt;
[[File:TE DECAL.gif|frame|TE_DECAL]]&lt;br /&gt;
&amp;lt;code&amp;gt;void CUtility::DecalTrace(TraceResult&amp;amp; in trace, int iDecalNumber)&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;hr&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
void te_decal(Vector pos, CBaseEntity@ brushEnt=null, string decal=&amp;quot;{handi&amp;quot;,&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_DECAL);&lt;br /&gt;
	m.WriteCoord(pos.x);&lt;br /&gt;
	m.WriteCoord(pos.y);&lt;br /&gt;
	m.WriteCoord(pos.z);&lt;br /&gt;
	m.WriteByte(g_EngineFuncs.DecalIndex(decal));&lt;br /&gt;
	m.WriteShort(brushEnt is null ? 0 : brushEnt.entindex());&lt;br /&gt;
	m.End();&lt;br /&gt;
}&amp;lt;/pre&amp;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;
| pos&lt;br /&gt;
| Center location of the decal. It needs to be witnin a few units of a surface.&lt;br /&gt;
|-&lt;br /&gt;
| CBaseEntity@&lt;br /&gt;
| brushEnt&lt;br /&gt;
| Brush entity to apply the decal to. If null, the decal is applied to the world instead.&lt;br /&gt;
|-&lt;br /&gt;
| string&lt;br /&gt;
| decal&lt;br /&gt;
| Texture name from decals.wad&lt;br /&gt;
|}&lt;br /&gt;
[[Category:Scripting]]&lt;/div&gt;</summary>
		<author><name>Outerbeast</name></author>
	</entry>
</feed>