Skip to content

TE_BLOOD

wootguy edited this page Nov 29, 2025 · 4 revisions

Ejects several small clumps of RGBAed particles.

Parameters

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

Example Usage

void te_blood(Vector pos, Vector dir, uint8_t RGBA=70, uint8_t speed=16,
    int msgType=MSG_BROADCAST, edict_t* dest=NULL)
{
    MESSAGE_BEGIN(msgType, SVC_TEMPENTITY, dest);
    WRITE_BYTE(TE_BLOOD);
    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