<?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_PLAYERDECAL</id>
	<title>TE PLAYERDECAL - 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_PLAYERDECAL"/>
	<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=TE_PLAYERDECAL&amp;action=history"/>
	<updated>2026-05-16T05:24:23Z</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_PLAYERDECAL&amp;diff=1400&amp;oldid=prev</id>
		<title>Outerbeast: Created page with &quot;TE_PLAYERDECAL Applies a player&#039;s custom spray to a world or entity surface.  &lt;code&gt;CUtility&lt;/code&gt; method: &lt;code&gt;void PlayerDecalTrace(Trace...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.svencoop.com/index.php?title=TE_PLAYERDECAL&amp;diff=1400&amp;oldid=prev"/>
		<updated>2025-10-21T14:14:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/File:TE_PLAYERDECAL.gif&quot; title=&quot;File:TE PLAYERDECAL.gif&quot;&gt;frame|TE_PLAYERDECAL&lt;/a&gt; Applies a player&amp;#039;s custom spray to a world or entity surface.  &amp;lt;code&amp;gt;CUtility&amp;lt;/code&amp;gt; method: &amp;lt;code&amp;gt;void PlayerDecalTrace(Trace...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[File:TE PLAYERDECAL.gif|frame|TE_PLAYERDECAL]]&lt;br /&gt;
Applies a player&amp;#039;s custom spray to a world or entity surface.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;CUtility&amp;lt;/code&amp;gt; method:&lt;br /&gt;
&amp;lt;code&amp;gt;void PlayerDecalTrace(TraceResult&amp;amp; in trace, int iPlayerNum, int iDecalNumber, const bool bIsCustom)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
void te_playerdecal(Vector pos, CBasePlayer@ plr, CBaseEntity@ brushEnt=null, 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.WriteByte(plr.entindex());&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.WriteShort(brushEnt is null ? 0 : brushEnt.entindex());&lt;br /&gt;
	m.WriteByte(0); // decal index does not apply here but it&amp;#039;s still required&lt;br /&gt;
	m.End();&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Vector	pos	Center location of the decal. It needs to be witnin a few units of a surface.&lt;br /&gt;
CBasePlayer@	plr	Player to load spray from&lt;br /&gt;
CBaseEntity@	brushEnt	Brush entity to apply the decal to. If null, the decal is applied to the world instead.&lt;/div&gt;</summary>
		<author><name>Outerbeast</name></author>
	</entry>
</feed>