Skip to content

TE_IMPLOSION

GeckoN edited this page Jan 31, 2017 · 4 revisions

Group of tracers moving towards a point.

Parameters

Type Name Description
Vector pos Center point for the effect
uint8 radius Starting distance for the tracers
uint8 count Number of tracers to spawn
uint8 life Duration of the effect (seconds * 0.1). Longer duration = slower and shorter tracers

API Function

No API function exists as of SC 5.02

NetworkMessage Function

void te_implosion(Vector pos, uint8 radius=255, uint8 count=32, uint8 life=5,
	NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
	NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
	m.WriteByte(TE_IMPLOSION);
	m.WriteCoord(pos.x);
	m.WriteCoord(pos.y);
	m.WriteCoord(pos.z);
	m.WriteByte(radius);
	m.WriteByte(count);
	m.WriteByte(life);
	m.End();
}
Clone this wiki locally