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
string sprite Sprite to display (alpha transparency)
uint8 density Number of sprites to spawn

NetworkMessage Function

void te_fizz(CBaseEntity@ brushEnt, 
    string sprite="sprites/bubble.spr", uint8 density=100,
    NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
    NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
    m.WriteByte(TE_FIZZ);
    m.WriteShort(brushEnt.entindex());
    m.WriteShort(g_EngineFuncs.ModelIndex(sprite));
    m.WriteByte(density);
    m.End();
}

Clone this wiki locally