Difference between revisions of "TE STREAK SPLASH"
Jump to navigation
Jump to search
Outerbeast (talk | contribs) (Created page with "Shoots multiple tracers in some direction, affected by gravity. frame|TE_STREAK_SPLASH <pre> void te_streaksplash(Vector start, Vector dir, uint8...") |
(No difference)
|
Latest revision as of 21:05, 5 April 2025
Shoots multiple tracers in some direction, affected by gravity.
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
