Skip to content

TE_WORLDDECALHIGH

wootguy edited this page Nov 29, 2025 · 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.
const char* decal Texture name from decals.wad

Example Usage

void te_worlddecalhigh(Vector pos, const char* decal="{handi",
    int msgType=MSG_BROADCAST, edict_t* dest=NULL)
{
    MESSAGE_BEGIN(msgType, SVC_TEMPENTITY, dest);
    WRITE_BYTE(TE_WORLDDECALHIGH);
    WRITE_COORD(pos.x);
    WRITE_COORD(pos.y);
    WRITE_COORD(pos.z);
    WRITE_BYTE(g_EngineFuncs.DecalIndex(decal));
    MESSAGE_END();
}

Clone this wiki locally