Skip to content

TE_WORLDDECALHIGH

GeckoN edited this page Jan 31, 2017 · 4 revisions

Applies a decal to a world surface. Uses texture indexes 256 to 511.

Parameters

Type Name Description
Vector pos Center location of the decal. It needs to be witnin a few units of a surface.
string decal Texture name from decals.wad

API Function

void CUtility::DecalTrace(TraceResult& in trace, int iDecalNumber)

NetworkMessage Function

void te_worlddecalhigh(Vector pos, string decal="{handi",
	NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
	NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
	m.WriteByte(TE_WORLDDECALHIGH);
	m.WriteCoord(pos.x);
	m.WriteCoord(pos.y);
	m.WriteCoord(pos.z);
	m.WriteByte(g_EngineFuncs.DecalIndex(decal));
	m.End();
}
Clone this wiki locally