forked from baso88/SC_AngelScript
-
Notifications
You must be signed in to change notification settings - Fork 0
TE_PARTICLEBURST
wootguy edited this page Nov 29, 2025
·
4 revisions
Expanding cube of RGBAed particles.
| Type | Name | Description |
|---|---|---|
| Vector | pos | Center point for the effect |
| uint16_t | radius | Radius of the particle cube when fully expanded |
| uint8_t | RGBA | Particle RGBA (index in [Engine Pallete #1](Temporary-Entities#engine-pallete-1)) |
| uint8_t | life | Duration of the effect (seconds * 0.1) |
void te_particlebust(Vector pos, uint16_t radius=128,
uint8_t RGBA=250, uint8_t life=5,
int msgType=MSG_BROADCAST, edict_t* dest=NULL)
{
MESSAGE_BEGIN(msgType, SVC_TEMPENTITY, dest);
WRITE_BYTE(TE_PARTICLEBURST);
WRITE_COORD(pos.x);
WRITE_COORD(pos.y);
WRITE_COORD(pos.z);
WRITE_SHORT(radius);
WRITE_BYTE(RGBA);
WRITE_BYTE(life);
MESSAGE_END();
}