Env sprite: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
Line 21: Line 21:
* {{i targetname}}
* {{i targetname}}
* {{i parentname}}
* {{i parentname}}
* '''Alpha <[[byte]]>'''
<!--targetname * '''Alpha <[[byte]]>'''
: Set the renderamt.
: Set the renderamt.-->
* '''Color {{color}}'''
* '''Color {{color}}'''
: Set the rendercolor.
: Set the rendercolor.
Line 33: Line 33:
* '''ToggleSprite'''
* '''ToggleSprite'''
: Toggle the sprite between hidden and shown.
: Toggle the sprite between hidden and shown.
==Outputs==
==Outputs==
* {{o targetname}}
* {{o targetname}}
[[Category:Entities]]
[[Category:Entities]]

Revision as of 09:13, 18 August 2005

Template:Wrongtitle

Entity Description

An entity that controls the drawing of a sprite in the world.

Keyvalues

<float> Rate at which the sprite should animate, if at all.
  • model
<sprite> Material of the sprite to be drawn.
  • scale
<float> Scale multiplier of the sprite.
  • GlowProxySize
<float> Size of the glow to be rendered for visibility testing. Must be larger than the distance from the sprite center to empty space. So if this glow is inside geometry (like a light bulb), set this value to be bigger than the bulb's radius. Any time a sphere of this radius would be visible (poking through any nearby geometry), the glow will be rendered.

Flags

  • 1 : Start on
  • 2 : Play Once

Inputs

Set the rendercolor.
  • SetScale <float>
Set the scale.
  • HideSprite
Hide the sprite. Won't be drawn until the 'ShowSprite' input is received.
  • ShowSprite
Show the sprite.
  • ToggleSprite
Toggle the sprite between hidden and shown.

Outputs