forked from baso88/SC_AngelScript
-
Notifications
You must be signed in to change notification settings - Fork 0
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.
| 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 |
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();
}