TE USERTRACER
Revision as of 21:02, 5 April 2025 by Outerbeast (talk | contribs) (Created page with "Shoots a customizable bullet tracer. Due to the low precision of the life parameter, the tracer distance is much less accurate than TE_TRACER. File:TE USERTRACER.gif|fr...")
Shoots a customizable bullet tracer.
Due to the low precision of the life parameter, the tracer distance is much less accurate than TE_TRACER.
void te_usertracer(Vector pos, Vector dir, float speed=6000.0f, uint8 life=32, uint color=4, uint8 length=12, NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null) { Vector velocity = dir*speed; NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest); m.WriteByte(TE_USERTRACER); m.WriteCoord(pos.x); m.WriteCoord(pos.y); m.WriteCoord(pos.z); m.WriteCoord(velocity.x); m.WriteCoord(velocity.y); m.WriteCoord(velocity.z); m.WriteByte(life); m.WriteByte(color); m.WriteByte(length); m.End(); }