- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4
TE_BEAMSPRITE
        GeckoN edited this page Jan 31, 2017 
        ·
        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 | 
| string | beamSprite | Sprite used to display the beam | 
| string | endSprite | Additive sprite drawn at the end of the beam | 
No API function exists as of SC 5.02
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();
}
