-
Notifications
You must be signed in to change notification settings - Fork 4
TE_PLAYERSPRITES
GeckoN edited this page Jan 31, 2017
·
4 revisions
Fills the player's collision box with sprites. A single sprite floats up and away from the player, disappearing shortly after.
Type | Name | Description |
---|---|---|
CBasePlayer@ | target | Player to surround with sprites |
string | sprite | Sprite to display (alpha transparency) |
uint8 | count | Number of sprites to spawn |
No API function exists as of SC 5.02
void te_playersprites(CBasePlayer@ target,
string sprite="sprites/bubble.spr", uint8 count=16,
NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
m.WriteByte(TE_PLAYERSPRITES);
m.WriteShort(target.entindex());
m.WriteShort(g_EngineFuncs.ModelIndex(sprite));
m.WriteByte(count);
m.WriteByte(0); // "size variation" - has no effect
m.End();
}