Skip to content

TE_SPARKS

wootguy edited this page Nov 29, 2025 · 4 revisions

A flashing sprite combined with a small splash of tracers. Sound effect not included.

Parameters

Type Name Description
Vector pos Center point for the effect

Example Usage

void te_sparks(Vector pos, 
    int msgType=MSG_BROADCAST, edict_t* dest=NULL)
{
    MESSAGE_BEGIN(msgType, SVC_TEMPENTITY, dest);
    WRITE_BYTE(TE_SPARKS);
    WRITE_COORD(pos.x);
    WRITE_COORD(pos.y);
    WRITE_COORD(pos.z);
    MESSAGE_END();
}

Clone this wiki locally