-
Notifications
You must be signed in to change notification settings - Fork 4
TE_FIZZ
GeckoN edited this page Jan 31, 2017
·
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 |
No API function exists as of SC 5.02
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();
}