Difference between revisions of "TE GUNSHOT"

From Sven Co-op
Jump to navigation Jump to search
(Created page with "frame|TE_GUNSHOT Small group of gray dots with a ricochet sound. <code>Vector pos</code> is the center point for the effect. <pre> void te_gunshot(Vect...")
 
(No difference)

Latest revision as of 20:22, 7 July 2025

TE_GUNSHOT

Small group of gray dots with a ricochet sound. Vector pos is the center point for the effect.

void te_gunshot(Vector pos, 
	NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null)
{
	NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest);
	m.WriteByte(TE_GUNSHOT);
	m.WriteCoord(pos.x);
	m.WriteCoord(pos.y);
	m.WriteCoord(pos.z);
	m.End();
}