Skip to content

TE_TRACER

wootguy edited this page Nov 29, 2025 · 4 revisions

Standard bullet tracer effect.

Parameters

Type Name Description
Vector start Starting point for the tracer
Vector end End point for the tracer

Example Usage

void te_tracer(Vector start, Vector end, 
    int msgType=MSG_BROADCAST, edict_t* dest=NULL)
{
    MESSAGE_BEGIN(msgType, SVC_TEMPENTITY, dest);
    WRITE_BYTE(TE_TRACER);
    WRITE_COORD(start.x);
    WRITE_COORD(start.y);
    WRITE_COORD(start.z);
    WRITE_COORD(end.x);
    WRITE_COORD(end.y);
    WRITE_COORD(end.z);
    MESSAGE_END();
}

Clone this wiki locally