Template:KV Sprite: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added {{lang}}.)
m (Used intn parameter of Template:KV. Used <onlyinclude>.)
Line 1: Line 1:
<noinclude>{{lang|Template:KV Sprite}}__NOTOC__</noinclude>
{{lang|Template:KV Sprite}}
__NOTOC__
<onlyinclude>
{{minititle|Sprite}}
{{minititle|Sprite}}
{{KV|Sprite Name (model)|string|The material to draw.}}
{{KV|Sprite Name|intn=model|string|The material to draw.}}
{{KV|Scale (scale)|float|Scale multiplier of the sprite.
{{KV|Scale|intn=scale|float|Scale multiplier of the sprite.


{{bug|Hammer's default sprite scale <code>0.25</code>, but the engine's is <code>1.0</code>. To synchronise the values, set this keyvalue to something.}}}}
{{bug|Hammer's default sprite scale <code>0.25</code>, but the engine's is <code>1.0</code>. To synchronise the values, set this keyvalue to something.}}}}
{{KV|Framerate (framerate)|string|Rate at which the sprite should animate, if at all.}}
{{KV|Framerate|intn=framerate|string|Rate at which the sprite should animate, if at all.}}
{{KV|Starting Frame (frame)|nofgd=1|float|If the sprite is animated, the frame it should start animating on.}}
{{KV|Starting Frame|intn=frame|nofgd=1|float|If the sprite is animated, the frame it should start animating on.}}
{{KV|Size of Glow Proxy Geometry (GlowProxySize)|float|Size of the glow to be rendered for visibility testing. Any time a sphere of this radius would be visible (poking through any nearby geometry), the glow will be rendered.}}
{{KV|Size of Glow Proxy Geometry|intn=GlowProxySize|float|Size of the glow to be rendered for visibility testing. Any time a sphere of this radius would be visible (poking through any nearby geometry), the glow will be rendered.}}
{{KV|HDR color scale (HDRColorScale)|float|Color multiplier for players using [[HDR]].}}
{{KV|HDR color scale|intn=HDRColorScale|float|Color multiplier for players using [[HDR]].}}
{{KV DXLevelChoice}}
{{KV DXLevelChoice}}
{{KV SystemLevelChoice}}<noinclude>[[Category:Keyvalue Templates|Sprite]]</noinclude>
{{KV SystemLevelChoice}}
</onlyinclude>
 
[[Category:Keyvalue Templates|Sprite]]

Revision as of 15:36, 8 March 2022


Sprite:

Sprite Name (model) <string>
The material to draw.
Scale (scale) <float>
Scale multiplier of the sprite.
Icon-Bug.pngBug:Hammer's default sprite scale 0.25, but the engine's is 1.0. To synchronise the values, set this keyvalue to something.  [todo tested in ?]
Framerate (framerate) <string>
Rate at which the sprite should animate, if at all.
Starting Frame (frame) <float> !FGD
If the sprite is animated, the frame it should start animating on.
Size of Glow Proxy Geometry (GlowProxySize) <float>
Size of the glow to be rendered for visibility testing. Any time a sphere of this radius would be visible (poking through any nearby geometry), the glow will be rendered.
HDR color scale (HDRColorScale) <float>
Color multiplier for players using HDR.
Minimum / Maximum DX Level (mindxlevel / maxdxlevel) <integer choices> (removed since Left 4 Dead)
The entity will not exist if the engine is running outside the given range of DirectX Versions.
Choices
Warning.pngWarning:If these are used, the object may break when the user switches their DirectX settings.[missing string]
Minimum / Maximum Effect Details Level (mincpulevel / maxcpulevel) <integer choices> (in all games since Left 4 Dead)
Don't render for players with Effect Details levels that exceed the minimum or maximum.
Choices
  • 0: Default ("Low" for mincpulevel, "High" for maxcpulevel)
  • 1: Low
  • 2: Medium
  • 3: High
Minimum / Maximum Shader Details Level (mingpulevel / maxgpulevel) <integer choices> (in all games since Left 4 Dead)
Don't render for players with Shader Details levels that exceed the minimum or maximum.
Choices
  • 0: Default ("Low" for mingpulevel, "Very High" for maxgpulevel)
  • 1: Low
  • 2: Medium
  • 3: High
  • 4: Very High
See also:  cpu_level / gpu_level convars