-
Notifications
You must be signed in to change notification settings - Fork 4
TE_GLOWSPRITE
GeckoN edited this page Jan 31, 2017
·
4 revisions
A sprite that slowly fades out after its life expires. Not animated.
Type | Name | Description |
---|---|---|
Vector | pos | Center point for the effect |
string | sprite | Non-animated Sprite (additive) |
uint8 | life | Time to wait before fading out (seconds * 0.1) |
uint8 | scale | Sprite scale * 0.1 |
uint8 | alpha | Sprite opacity |
No API function exists as of SC 5.02
void te_glowsprite(Vector pos, string sprite="sprites/glow01.spr",
uint8 life=1, uint8 scale=10, uint8 alpha=255,
NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
m.WriteByte(TE_GLOWSPRITE);
m.WriteCoord(pos.x);
m.WriteCoord(pos.y);
m.WriteCoord(pos.z);
m.WriteShort(g_EngineFuncs.ModelIndex(sprite));
m.WriteByte(life);
m.WriteByte(scale);
m.WriteByte(alpha);
m.End();
}