Difference between revisions of "TE BEAMSPRITE"
Jump to navigation
Jump to search
Outerbeast (talk | contribs) (Created page with "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...") |
Outerbeast (talk | contribs) m |
||
| Line 40: | Line 40: | ||
| Additive sprite drawn at the end of the beam | | Additive sprite drawn at the end of the beam | ||
|} | |} | ||
| + | [[Category:Scripting]] | ||
Latest revision as of 12:37, 16 April 2025
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.
void te_beamsprite(Vector start, Vector end,
string beamSprite="sprites/laserbeam.spr",
string endSprite="sprites/glow01.spr",
NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
m.WriteByte(TE_BEAMSPRITE);
m.WriteCoord(start.x);
m.WriteCoord(start.y);
m.WriteCoord(start.z);
m.WriteCoord(end.x);
m.WriteCoord(end.y);
m.WriteCoord(end.z);
m.WriteShort(g_EngineFuncs.ModelIndex(beamSprite));
m.WriteShort(g_EngineFuncs.ModelIndex(endSprite));
m.End();
}
| Vector | start | Starting position of the beam |
|---|---|---|
| Vector | end | End position of the beam |
| string | beamSprite | Sprite used to display the beam |
| string | endSprite | Additive sprite drawn at the end of the beam |