-
Notifications
You must be signed in to change notification settings - Fork 4
TE_PARTICLEBURST
GeckoN edited this page Jan 31, 2017
·
5 revisions
Expanding cube of colored particles.
Type | Name | Description |
---|---|---|
Vector | pos | Center point for the effect |
uint16 | radius | Radius of the particle cube when fully expanded |
uint8 | color | Particle color (index in Engine Palette #1) |
uint8 | life | Duration of the effect (seconds * 0.1) |
No API function exists as of SC 5.02
void te_particlebust(Vector pos, uint16 radius=128,
uint8 color=250, uint8 life=5,
NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
m.WriteByte(TE_PARTICLEBURST);
m.WriteCoord(pos.x);
m.WriteCoord(pos.y);
m.WriteCoord(pos.z);
m.WriteShort(radius);
m.WriteByte(color);
m.WriteByte(life);
m.End();
}