TE_BLOODSPRITE - baso88/SC_AngelScript GitHub Wiki

A downward spray of sprites with an animated sprite in the center.

Parameters

Type Name Description
Vector pos Center point of the effect
string sprite1 Animated sprite in the center (alpha transparency)
string sprite2 Animated sprites sprayed down from the center point (alpha transparency)
uint8 color Sprite color (index in Engine Palette #1)
uint8 scale Sprite scale * 0.1

API Function

No API function exists as of SC 5.02

NetworkMessage Function

void te_bloodsprite(Vector pos, string sprite1="sprites/bloodspray.spr",
	string sprite2="sprites/blood.spr", uint8 color=70, uint8 scale=3,
	NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
	NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
	m.WriteByte(TE_BLOODSPRITE);
	m.WriteCoord(pos.x);
	m.WriteCoord(pos.y);
	m.WriteCoord(pos.z);
	m.WriteShort(g_EngineFuncs.ModelIndex(sprite1));
	m.WriteShort(g_EngineFuncs.ModelIndex(sprite2));
	m.WriteByte(color);
	m.WriteByte(scale);
	m.End();
}