Skip to main content

env_sprite

env_sprite icon
Point entity

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:

KeyDescriptionDefault
Nametargetname

Triggering the entity shows or hides the sprite, as the use type says. Without a name, the sprite is always shown. See Common keys.

Move withSpirit of Half-Lifemovewith

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.

Axis locksparentflags

Keeps 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.

Default 0
Framerateframerate

For 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.

Default 10.0
Sequencesequence

For a studio model only, sets the number of the animation it plays, where 0 is the first.

Default 0
Sprite or modelmodel

Sets 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.

Default sprites/glow01.spr
Scalescale

Sets 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.

Attached to entity...Featurefulmessage

Names an entity the sprite rides on, so it moves with that entity.

...at attachment pointFeaturefulfrags

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
Default 0
Start frameFeaturefulimpulse

Sets the frame of a sprite it starts on each time it is shown, where 0 is the first, and a negative number picks a random frame.

Default 0

Flags​

1Start on

A sprite with a Name is shown when the map starts. A sprite without a name is always shown

2Play Once

The sprite plays its frames once and then hides, until you show it again. A studio model hides when its animation is done

8Don't mess YawFeatureful

The entity uses its angles as the map gives them. Without this flag, a yaw set in the editor turns the sprite around the axis it faces along

Notes​

  • A studio model keeps playing its animation on each player's game without the server

See also​

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 scale key draws models at that scale. SBO 1.38 always drew them at their normal size