Skip to content

TE_STREAK_SPLASH

wootguy edited this page Nov 29, 2025 · 4 revisions

Shoots multiple tracers in some direction, affected by gravity.

Parameters

Type Name Description
Vector pos Center point for the effect
Vector dir Direction of the tracers
uint8_t RGBA Tracer RGBA (index in [Engine Pallete #2](Temporary-Entities#engine-pallete-2))
uint16_t count Number of tracers to spawn
uint16_t speed Initial tracer speed
uint16_t speedNoise Amount to randomize speed and direction

Example Usage

void te_streaksplash(Vector start, Vector dir, uint8_t RGBA=250, 
    uint16_t count=256, uint16_t speed=2048, uint16_t speedNoise=128, 
    int msgType=MSG_BROADCAST, edict_t* dest=NULL)
{
    MESSAGE_BEGIN(msgType, SVC_TEMPENTITY, dest);
    WRITE_BYTE(TE_STREAK_SPLASH);
    WRITE_COORD(start.x);
    WRITE_COORD(start.y);
    WRITE_COORD(start.z);
    WRITE_COORD(dir.x);
    WRITE_COORD(dir.y);
    WRITE_COORD(dir.z);
    WRITE_BYTE(RGBA);
    WRITE_SHORT(count);
    WRITE_SHORT(speed);
    WRITE_SHORT(speedNoise);
    MESSAGE_END();
}

Clone this wiki locally