Skip to content

TE_FIZZ

wootguy edited this page Nov 29, 2025 · 4 revisions

Spawns randomly positioned sprites inside of a brush entity. The sprites float from bottom to top inside of the brush.

Parameters

Type Name Description
CBaseEntity* brushEnt Brush entity to spawn sprites inside of
const char* sprite Sprite to display (alpha transparency)
uint8_t density Number of sprites to spawn

Example Usage

void te_fizz(CBaseEntity* brushEnt, 
    const char* sprite="sprites/bubble.spr", uint8_t density=100,
    int msgType=MSG_BROADCAST, edict_t* dest=NULL)
{
    MESSAGE_BEGIN(msgType, SVC_TEMPENTITY, dest);
    WRITE_BYTE(TE_FIZZ);
    WRITE_SHORT(brushEnt->entindex());
    WRITE_SHORT(MODEL_INDEX(sprite));
    WRITE_BYTE(density);
    MESSAGE_END();
}

Clone this wiki locally