Skip to content

TE_PLAYERSPRITES

wootguy edited this page Nov 29, 2025 · 4 revisions

Fills the player's collision box with sprites. A single sprite floats up and away from the player, disappearing shortly after.

Parameters

Type Name Description
CBasePlayer@ target Player to surround with sprites
string sprite Sprite to display (alpha transparency)
uint8 count Number of sprites to spawn

NetworkMessage Function

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();
}

Clone this wiki locally