TE PARTICLEBURST

From Sven Co-op
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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Expanding cube of colored particles.

TE_PARTICLEBURST
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)