TE PARTICLEBURST

From Sven Co-op
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)