Skip to content

TE_BLOODSTREAM

wootguy edited this page Nov 29, 2025 · 4 revisions

Ejects two streams of RGBAed particles that fall to the ground. One stream is more condensed than the other.

Parameters

Type Name Description
Vector pos Sarting position for the effect
Vector dir Direction of the stream
uint8_t RGBA Sprite RGBA (index in [Engine Pallete #1](Temporary-Entities#engine-pallete-1))
uint8_t speed Particle ejection speed

Example Usage

void te_bloodstream(Vector pos, Vector dir, uint8_t RGBA=70, uint8_t speed=64,
    int msgType=MSG_BROADCAST, edict_t* dest=NULL)
{
    MESSAGE_BEGIN(msgType, SVC_TEMPENTITY, dest);
    WRITE_BYTE(TE_BLOODSTREAM);
    WRITE_COORD(pos.x);
    WRITE_COORD(pos.y);
    WRITE_COORD(pos.z);
    WRITE_COORD(dir.x);
    WRITE_COORD(dir.y);
    WRITE_COORD(dir.z);
    WRITE_BYTE(RGBA);
    WRITE_BYTE(speed);
    MESSAGE_END();
}

Clone this wiki locally