TE SMOKE
Revision as of 13:41, 31 May 2025 by Outerbeast (talk | contribs) (Created page with "An animated sprite that moves upward at 30 units per second. Plays once. frame|TE_SMOKE <pre> void te_smoke(Vector pos, string sprite="sprites/steam1.spr...")
An animated sprite that moves upward at 30 units per second. Plays once.
void te_smoke(Vector pos, string sprite="sprites/steam1.spr", int scale=10, int frameRate=15, NetworkMessageDest msgType=MSG_BROADCAST, edict_t@ dest=null) { NetworkMessage m(msgType, NetworkMessages::SVC_TEMPENTITY, dest); m.WriteByte(TE_SMOKE); m.WriteCoord(pos.x); m.WriteCoord(pos.y); m.WriteCoord(pos.z); m.WriteShort(g_EngineFuncs.ModelIndex(sprite)); m.WriteByte(scale); m.WriteByte(frameRate); m.End(); }
Vector pos
Center point for the effectstring sprite
Animated smoke sprite (alpha transparency)uint8 scale
Sprite scale * 0.1uint8 frameRate
Frame rate of the sprite (FPS * 0.1)