forked from baso88/SC_AngelScript
-
Notifications
You must be signed in to change notification settings - Fork 0
TE_BEAMSPRITE
wootguy edited this page Nov 29, 2025
·
4 revisions
A beam with a sprite at the end.
It appears to be completely useless since it's only visible for a single frame and there is no way to increase its life time. Please, someone correct me if I'm wrong.
| Type | Name | Description |
|---|---|---|
| Vector | start | Starting position of the beam |
| Vector | end | End position of the beam |
| const char* | beamSprite | Sprite used to display the beam |
| const char* | endSprite | Additive sprite drawn at the end of the beam |
void te_beamsprite(Vector start, Vector end,
const char* beamSprite="sprites/laserbeam.spr",
const char* endSprite="sprites/glow01.spr",
int msgType=MSG_BROADCAST, edict_t* dest=NULL)
{
MESSAGE_BEGIN(msgType, SVC_TEMPENTITY, dest);
WRITE_BYTE(TE_BEAMSPRITE);
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_SHORT(MODEL_INDEX(beamSprite));
WRITE_SHORT(MODEL_INDEX(endSprite));
MESSAGE_END();
}