TE_BLOODSTREAM - baso88/SC_AngelScript GitHub Wiki

Ejects two streams of colored particles that fall to the ground. One stream is more condensed than the other.

Parameters

Type Name Description
Vector pos Sarting position for the effect
Vector dir Direction of the stream
uint8 color Sprite color (index in Engine Palette #1)
uint8 speed Particle ejection speed

API Function

void CUtility::BloodStream(const Vector& in vecOrigin, const Vector& in vecDirection, int iColor, int iAmount)

NetworkMessage Function

void te_bloodstream(Vector pos, Vector dir, uint8 color=70, uint8 speed=64,
	NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
	NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
	m.WriteByte(TE_BLOODSTREAM);
	m.WriteCoord(pos.x);
	m.WriteCoord(pos.y);
	m.WriteCoord(pos.z);
	m.WriteCoord(dir.x);
	m.WriteCoord(dir.y);
	m.WriteCoord(dir.z);
	m.WriteByte(color);
	m.WriteByte(speed);
	m.End();
}