Skip to content

TE_SMOKE

GeckoN edited this page Jan 31, 2017 · 4 revisions

An animated sprite that moves upward at 30 units per second. Plays once.

Parameters

Type Name Description
Vector pos Center point for the effect
string sprite Animated smoke sprite (alpha transparency)
uint8 scale Sprite scale * 0.1
uint8 frameRate Frame rate of the sprite (FPS * 0.1)

API Function

No API function exists as of SC 5.02

NetworkMessage Function

void te_smoke(Vector pos, string sprite="sprites/steam1.spr", 
	int scale=10, int frameRate=15,
	NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
	NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
	m.WriteByte(TE_SMOKE);
	m.WriteCoord(pos.x);
	m.WriteCoord(pos.y);
	m.WriteCoord(pos.z);
	m.WriteShort(g_EngineFuncs.ModelIndex(sprite));
	m.WriteByte(scale);
	m.WriteByte(frameRate);
	m.End();
}
Clone this wiki locally