Skip to content

TE_EXPLOSION2

GeckoN edited this page Jan 27, 2017 · 4 revisions

Quake-style explosion. Burst of colormaped (base palette) particles and an explosion sound.

Parameters

Type Name Description
Vector pos Center point for the effect
uint8 colorStart Starting color
uint8 colorLength Num colors

API Function

No API function exists as of SC 5.10

NetworkMessage Function

void te_explosion2(Vector pos, uint8 colorStart, uint8 colorLength,
    NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
    NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
    m.WriteByte(TE_EXPLOSION2);
    m.WriteCoord(pos.x);
    m.WriteCoord(pos.y);
    m.WriteCoord(pos.z);
    m.WriteByte(colorStart);
    m.WriteByte(colorLength);
    m.End();
}
Clone this wiki locally