This article's documentation is for anything that uses the Source engine. Click here for more information.

env_sprite_clientside

From Valve Developer Community
Revision as of 01:43, 1 June 2025 by Nescius (talk | contribs)
Jump to navigation Jump to search
English (en)Translate (Translate)

env_sprite_clientside is a point entity available in all Source Source games since Alien Swarm Alien Swarm.(also in Garry's Mod)

C++ Class hierarchy
CSprite
CBaseEntity
C++ Sprite.cpp

It is an entity that controls the drawing of a sprite in the world, created clientside so cannot be parented to moving things and will use up no network bandwidth or CPU.

Note.pngNote:This entity is the same as env_sprite with only difference being that it's removed server-side upon spawning, reducing edict usage thereafter.
Warning.pngWarning:When loading a saved game it spawns only if at least one sprite using the same model also exists as non client-side entity. This is because if no server-side version exists the sprite model is not precached anymore (see output of command cl_precacheinfo modelprecache) after loading the game and therefore the client-side entity is unable to spawn.
Warning.pngWarning:Remains as an edict if targetname or parentname is specified
Note.pngNote:Uses same keyvalues as env_sprite

See also