env_sprite
An env_sprite shows a sprite, or a studio model, at its position. You can switch it on and off, and it can ride on
another entity.
Attributes
The entity also has these common keys:
- Position: Pitch Yaw Roll
- Appearance: Render FX, Render Mode, FX Amount and FX Color
targetnameTriggering the entity shows or hides the sprite, as the use type says. Without a name, the sprite is always shown. See Common keys.
Names the parent, an entity that this one moves and turns with. The entity keeps the place and the angles it has on the parent in the editor. If several entities have the name, the first one counts. A name ending in .1 to .4 puts a sprite or a model that isn't solid on that attachment point of the model of the parent. A solid brush on a parent that turns needs its own origin brush. Moving objects explains it all.
If you leave this key empty, the entity doesn't move with anything.
parentflagsKeeps some of the entity's own position or angles instead of following the parent. Add up the values of the axes to keep: 2 for X, 4 for Y, 8 for Z, 16 for pitch, 32 for yaw and 64 for roll. So 112 keeps the entity level. 0 follows the parent on every axis.
0framerateFor a sprite, sets how many frames per second it plays. For a studio model, sets how fast its animation plays: 1 is the animation's own speed, 0.5 is half and 0 holds the first frame.
If you leave this key empty, it is 0, so a sprite doesn't animate and a model holds its first frame.
10.0sequenceFor a studio model only, sets the number of the animation it plays, where 0 is the first.
0modelSets the sprite (.spr) or the studio model (.mdl) it shows.
If you leave this key empty, or use an editor model or a file the server doesn't have, the entity is removed when the map starts.
sprites/glow01.sprscaleSets the size, so 0.5 is half and 2 is double. For a studio model, only the look changes.
If you leave this key empty or set 1, it has its normal size.
Picks where on the model of that entity the sprite sits.
- 0 - At the entity's own position
- 1 - At the first attachment point of the model, a point the model maker placed
- 2 - At the second attachment point
- 3 - At the third attachment point
- 4 - At the fourth attachment point
0Flags
1Start onA sprite with a Name is shown when the map starts. A sprite without a name is always shown
2Play OnceThe sprite plays its frames once and then hides, until you show it again. A studio model hides when its animation is done
Notes
- A studio model keeps playing its animation on each player's game without the server
See also
env_glow- a sprite that is always shownenv_static- a model that stands stillenv_model- an animated model with an on and an off animation- Model scale - how scale works on models
- env_sprite on TWHL - the Half-Life entity
Changes since 1.38
- You can use the new keys Attached to entity..., ...at attachment point and Start frame and the new flag Don't mess Yaw
- A studio model plays its animation at the speed that Framerate sets. In SBO 1.38, it played the animation Framerate times too fast
- The
scalekey draws models at that scale. SBO 1.38 always drew them at their normal size

