Template:KV Sprite: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Scaling has limited precision in multiplayer)
(Replaced content with "{{APH}}")
Tag: Replaced
 
Line 1: Line 1:
{{lang|Template:KV Sprite}}
{{APH}}
__NOTOC__
<onlyinclude>
{{minititle|Sprite}}
{{KV|Sprite Name|intn=model|string|The material to draw.}}
{{KV|Scale|intn=scale|float|Scale multiplier of the sprite.
:{{note|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.}}
:{{warning|The precision of this value is limited in multiplayer. The maximum scale is 64 and the value will be rounded to an upper power of 2 (64, 32, 16, 8, 4, 2, 1, 0.5, 0.25, 0.125...). {{gmod|2}} fixes this and uses full precision. This may lead to desynced scaling, for example, if a map made for another game uses a value of 40, it will get rounded up to 64 in that game but will remain at 40 in {{gmod}}.}}}}
{{KV|Framerate|intn=framerate|string|Rate at which the sprite should animate, if at all.}}
{{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|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|intn=HDRColorScale|float|Color multiplier for players using [[HDR]].}}
{{KV DXLevelChoice}}
{{KV SystemLevelChoice}}
</onlyinclude>
 
[[Category:Keyvalue Templates|Sprite]]

Latest revision as of 04:24, 1 October 2024

Note.pngNote:Archived page history
Icon-Important.pngImportant:These pages are linked often from page history logs so Special:WhatLinksHere will not show anything.