-
Notifications
You must be signed in to change notification settings - Fork 4
TE_EXPLOSION2
GeckoN edited this page Jan 27, 2017
·
4 revisions
Quake-style explosion. Burst of colormaped (base palette) particles and an explosion sound.
Type | Name | Description |
---|---|---|
Vector | pos | Center point for the effect |
uint8 | colorStart | Starting color |
uint8 | colorLength | Num colors |
No API function exists as of SC 5.10
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();
}