TE STREAK SPLASH

From Sven Co-op
Jump to navigation Jump to search

Shoots multiple tracers in some direction, affected by gravity.

TE_STREAK_SPLASH
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();
}
  • 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