Skip to content

TE_EXPLOSION2

wootguy edited this page Nov 29, 2025 · 4 revisions

Quake-style explosion. A shorter version of TE_TAREXPLOSION that also creates a white dynamic light.

Parameters

Type Name Description
Vector pos Center point for the effect

API Function

No API function exists as of SC 5.02

NetworkMessage Function

void te_explosion(Vector pos, NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
    NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
    m.WriteByte(TE_EXPLOSION);
    m.WriteCoord(pos.x);
    m.WriteCoord(pos.y);
    m.WriteCoord(pos.z);
    m.End();
}

Clone this wiki locally