Skip to content

TE_IMPLOSION

wootguy edited this page Nov 29, 2025 · 4 revisions

Group of tracers moving towards a point.

Parameters

Type Name Description
Vector pos Center point for the effect
uint8_t radius Starting distance for the tracers
uint8_t count Number of tracers to spawn
uint8_t life Duration of the effect (seconds * 0.1). Longer duration = slower and shorter tracers

Example Usage

void te_implosion(Vector pos, uint8_t radius=255, uint8_t count=32, uint8_t life=5,
    int msgType=MSG_BROADCAST, edict_t* dest=NULL)
{
    MESSAGE_BEGIN(msgType, SVC_TEMPENTITY, dest);
    WRITE_BYTE(TE_IMPLOSION);
    WRITE_COORD(pos.x);
    WRITE_COORD(pos.y);
    WRITE_COORD(pos.z);
    WRITE_BYTE(radius);
    WRITE_BYTE(count);
    WRITE_BYTE(life);
    MESSAGE_END();
}

Clone this wiki locally