Difference between revisions of "TE BLOODSPRITE"
Jump to navigation
Jump to search
Outerbeast (talk | contribs) (Created page with "A downward spray of sprites with an animated sprite in the center. frame|TE_BLOODSPRITE <pre> void te_bloodsprite(Vector pos, string sprite1="spri...") |
(No difference)
|
Latest revision as of 20:33, 5 April 2025
A downward spray of sprites with an animated sprite in the center.
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();
}
- 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