Skip to content

TE_STREAK_SPLASH

GeckoN edited this page Feb 7, 2017 · 6 revisions

Shoots multiple tracers in some direction, affected by gravity.

Parameters

Type Name Description
Vector pos Center point for the effect
Vector dir Direction of the tracers
uint8 color Tracer color (index in Engine Palette #2).
Only values <0 - 11> are valid. The default color index is 4.
uint16 count Number of tracers to spawn
uint16 speed Initial tracer speed
uint16 speedNoise Amount to randomize speed and direction

API Function

No API function exists as of SC 5.02

NetworkMessage Function

void te_streaksplash(Vector start, Vector dir, uint8 color=4, 
	uint16 count=256, uint16 speed=2048, uint16 speedNoise=128, 
	NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
	NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
	m.WriteByte(TE_STREAK_SPLASH);
	m.WriteCoord(start.x);
	m.WriteCoord(start.y);
	m.WriteCoord(start.z);
	m.WriteCoord(dir.x);
	m.WriteCoord(dir.y);
	m.WriteCoord(dir.z);
	m.WriteByte(color);
	m.WriteShort(count);
	m.WriteShort(speed);
	m.WriteShort(speedNoise);
	m.End();
}
Clone this wiki locally