TE_EXPLOSION2 - baso88/SC_AngelScript GitHub Wiki
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.10
NetworkMessage Function
void te_explosion2(Vector pos,
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(0); // "start color" - has no effect
m.WriteByte(127); // "number of colors" - has no effect
m.End();
}