forked from baso88/SC_AngelScript
-
Notifications
You must be signed in to change notification settings - Fork 0
TE_BUBBLETRAIL
wootguy edited this page Nov 29, 2025
·
4 revisions
Spawns sprites along a line or from a single point. Sprites float upwards and disappear once they reach their max height.
The max height is set as the lowest point on the line plus the height value.
| Type | Name | Description |
|---|---|---|
| Vector | start | Spawn line start |
| Vector | end | Spawn line end (can be same as start) |
| const char* | sprite | Sprite to display (alpha transparency) |
| float | height | Height at which sprites disappear |
| uint8_t | count | Number of sprites to spawn |
| float | speed | Upward speed. |
void te_bubbletrail(Vector start, Vector end,
const char* sprite="sprites/bubble.spr", float height=128.0f,
uint8_t count=16, float speed=16.0f,
int msgType=MSG_BROADCAST, edict_t* dest=NULL)
{
MESSAGE_BEGIN(msgType, SVC_TEMPENTITY, dest);
WRITE_BYTE(TE_BUBBLETRAIL);
WRITE_COORD(start.x);
WRITE_COORD(start.y);
WRITE_COORD(start.z);
WRITE_COORD(end.x);
WRITE_COORD(end.y);
WRITE_COORD(end.z);
WRITE_COORD(height);
WRITE_SHORT(MODEL_INDEX(sprite));
WRITE_BYTE(count);
WRITE_COORD(speed);
MESSAGE_END();
}