TE_FIZZ - baso88/SC_AngelScript GitHub Wiki
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 |
API Function
No API function exists as of SC 5.02
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();
}