TE PARTICLEBURST
Revision as of 21:26, 5 April 2025 by Outerbeast (talk | contribs) (Created page with "Expanding cube of colored particles. frame|TE_PARTICLEBURST <pre> void te_particlebust(Vector pos, uint16 radius=128, uint8 color=250, uint8 li...")
Expanding cube of colored particles.
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();
}
- 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)
