-
Notifications
You must be signed in to change notification settings - Fork 4
TE_BLOOD
GeckoN edited this page Jan 31, 2017
·
5 revisions
Ejects several small clumps of colored particles.
Type | Name | Description |
---|---|---|
Vector | pos | Sarting position for the effect |
Vector | dir | Direction of the stream |
uint8 | color | Particle color (index in Engine Palette #1) |
uint8 | speed | Particle ejection speed |
void CUtility::BloodDrips(const Vector& in vecOrigin, const Vector& in vecDirection, int iColor, int iAmount)
void te_blood(Vector pos, Vector dir, uint8 color=70, uint8 speed=16,
NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
m.WriteByte(TE_BLOOD);
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();
}