-
Notifications
You must be signed in to change notification settings - Fork 4
TE_TRACER
GeckoN edited this page Feb 7, 2017
·
5 revisions
Standard bullet tracer effect.
Color of this effect is determined by tracerred
, tracergreen
and tracerblue
cvars,
opacity by traceralpha
, speed by tracerspeed
, distance from the startpoint where the tracer will appear by traceroffset
and finally length by tracerlength
cvar.
See also TE_USERTRACER effect.
Type | Name | Description |
---|---|---|
Vector | start | Starting point for the tracer |
Vector | end | End point for the tracer |
No API function exists as of SC 5.02
void te_tracer(Vector start, Vector end,
NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
m.WriteByte(TE_TRACER);
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.End();
}