Env sprite clientside: Difference between revisions
Jump to navigation
Jump to search

Note: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:Remains as an edict if targetname or parentname is specified
Note:All
No edit summary |
(not transmitted to client, client parses it from the map, it's just removed server side so it being an edict seems like a waste other than the parentname/targetname thing) |
||
Line 3: | Line 3: | ||
{{CD|CSprite|nolink=1|file1=[https://github.com/ReactiveDrop/reactivedrop_public_src/blob/reactivedrop_beta/src/game/shared/Sprite.cpp#L33 Sprite.cpp]}} | {{CD|CSprite|nolink=1|file1=[https://github.com/ReactiveDrop/reactivedrop_public_src/blob/reactivedrop_beta/src/game/shared/Sprite.cpp#L33 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. | 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|This entity is the same as {{ent|env_sprite}} with only difference being that it's removed server-side upon spawning, reducing [[edict]] usage thereafter.{{important|Due to this, it will not be preserved when loading a saved game; as such, this entity should only be used in multiplayer.{{confirm}}}} }} | {{note|This entity is the same as {{ent|env_sprite}} with only difference being that it's removed server-side upon spawning, reducing [[edict]] usage thereafter. | ||
{{ | :{{important|Due to this, it will not be preserved when loading a saved game; as such, this entity should only be used in multiplayer.{{confirm}}}} }} | ||
{{warning|Remains as an edict if {{mono|targetname}} or {{mono|parentname}} is specified}} | |||
{{OtherKIO|env_sprite|All}} | {{OtherKIO|env_sprite|All}} | ||
==See also== | == See also == | ||
* {{ent|env_sprite}} | * {{ent|env_sprite}} | ||
* {{ent|env_sprite_oriented}} | * {{ent|env_sprite_oriented}} |
Revision as of 01:28, 1 June 2025


env_sprite_clientside
is a point entity available in all Source games since
Alien Swarm.(also in
)
![]() |
---|
CSprite |
![]() |
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.

Important:Due to this, it will not be preserved when loading a saved game; as such, this entity should only be used in multiplayer.[confirm]


Keyvalues / Inputs / Outputs
are same as env_sprite.