Skip to content

TE_LARGEFUNNEL

GeckoN edited this page Jan 31, 2017 · 4 revisions

A large funnel of sprites and green dots getting sucked into (or pushed out of) a point.

Parameters

Type Name Description
Vector pos Center point of the effect
string sprite Sprite to display (additive)
uint16 flags If set to 1, the effect plays in reverse

API Function

No API function exists as of SC 5.02

NetworkMessage Function

void te_largefunnel(Vector pos, string sprite="sprites/glow01.spr", 
	uint16 flags=0,
	NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
	NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
	m.WriteByte(TE_LARGEFUNNEL);
	m.WriteCoord(pos.x);
	m.WriteCoord(pos.y);
	m.WriteCoord(pos.z);
	m.WriteShort(g_EngineFuncs.ModelIndex(sprite));
	m.WriteShort(flags);
	m.End();
}
Clone this wiki locally