Template:KV Render FX: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{lang|{{FULLPAGENAME}}}}[[Category:Keyvalue Templates]]
{{lang|{{FULLPAGENAME}}}}[[Category:Keyvalue Templates]]
Add {{para|l4d|b4}} to hide L4D stuff or {{para|l4d|onlyafter}} to hide Src13 stuff.
Add {{para|l4d|b4}} to hide L4D stuff or {{para|l4d|onlyafter}} to hide Src13 stuff.
<onlyinclude>{{KV|Render FX|intn=renderfx|choices|Various somewhat legacy alpha effects.}}
 
{{ModernBug|Alpha effects from 0 to 10 are unavailable due to the bug in code in {{game link|Counter-Strike: Global Offensive}}}}
{{KV Render FX}}
 
== Tests ==
{{KV|start}}
{{KV Render FX|new=1}}
{{KV|end}}
 
<includeonly><onlyinclude>{{#if:{{{new|}}}
| {{KV|new=1|renderfx|choices|src={{{src|}}}|Render FX|value=Normal|rawValue=0|Various somewhat legacy alpha effects.
{{ModernBug|Alpha effects from 0 to 10 are unavailable due to the bug in code in {{csgo|4.1}}}}
 
'''Values:'''
:*'''0:''' None
:*'''1:''' Slow Pulse (varies alpha by ±16 over a period of 1.5 s)
:*'''2:''' Fast Pulse (varies alpha by ±16 over a period of 0.4 s)
:*'''3:''' Slow Wide Pulse (varies alpha by ±64 over a period of 1.5 s)
:*'''4:''' Fast Wide Pulse (varies alpha by ±64 over a period of 0.4 s)
{{#switch: {{{l4d}}}
|b4=:*'''5:''' Slow Fade Away (decreases alpha by -1 per frame/{{l4d|since}} Fades out over 4 s)
<!---->:*'''6:''' Fast Fade Away (decreases alpha by -4 per frame/{{l4d|since}} Fades out over 1 s)
<!---->:*'''7:''' Slow Become Solid (increases alpha by +1 per frame/{{l4d|since}} Fades in over 4 s)
<!---->:*'''8:''' Fast Become Solid (increases alpha by +4 per frame)
|onlyafter=:*'''5:''' Slow Fade Away (Fades out over 4 s)
<!---->:*'''6:''' Fast Fade Away (Fades out over 1 s)
<!---->:*'''7:''' Slow Become Solid (Fades in over 4 s)
<!---->:*'''8:''' Fast Become Solid (Fades in over 1 s)
|:*'''5:''' Slow Fade Away (decreases alpha by -1 per frame/{{l4d|since}} Fades out over 4 s)
<!---->:*'''6:''' Fast Fade Away (decreases alpha by -4 per frame/{{l4d|since}} Fades out over 1 s)
<!---->:*'''7:''' Slow Become Solid (increases alpha by +1 per frame/{{l4d|since}} Fades in over 4 s)
<!---->:*'''8:''' Fast Become Solid (increases alpha by +4 per frame/{{l4d|since}} Fades in over 1 s) }}
:*'''9:''' Slow Strobe (transparent 0.8 s, visible 0.8 s, repeat)
:*'''10:''' Fast Strobe (transparent 0.2 s, visible 0.2 s, repeat)
:*'''11:''' Faster Strobe (transparent 0.09 s, visible 0.09 s, repeat)
:*'''12:''' Slow Flicker (transparent 0.18 s, visible 1.5 s, repeat)
:*'''13:''' Fast Flicker (transparent 0.14 s, visible 0.2 s, repeat)
:*'''14:''' Constant Glow ("NoDissipation;" purpose uncertain—for sprites?) {{csgo|not}}
{{#switch: {{{l4d}}}
|b4=:*'''15:''' Distort (causes unnatural flickering and position shifting)
<!---->:*'''16:''' Fade In (instant; not very useful outside of code)
<!---->:*'''17:''' Scale Up ("Explode"/"scale up really big!" causes wild stretching of model parts) {{src13|in}} {{confirm|which branches/games is it available in, and where does it do what?}}
|onlyafter=:*'''15:''' Fade Out (instant; not very useful outside of code)
<!---->:*'''16:''' Hologram (Distort + "distance fade")
<!---->:*'''17:''' Fade Wider Pulse (varies alpha by ±255 over a period over a period of 0.26 s) {{confirm|which branches/games is it available in, and where does it do what?}}
|:*'''15:''' Distort (causes unnatural flickering and position shifting)/{{l4d|since}} Fade Out (instant; not very useful outside of code)
<!---->:*'''16:''' Hologram (Distort + "distance fade")/{{l4d|since}} Fade In (instant; not very useful outside of code)
<!---->:*'''17:''' Scale Up ("Explode"/"scale up really big!" causes wild stretching of model parts) {{src13|in}}/Fade Wider Pulse (varies alpha by ±255 over a period over a period of 0.26 s) {{l4d|since}} {{confirm|which branches/games is it available in, and where does it do what?}} }}
:*'''18:''' Glow Shell (purpose unclear) {{#ifeq: {{{l4d}}}|onlyafter||{{src13|since}} {{csgo|not}} }} {{confirm|what does this do? and which games is it in?}}
:*'''19:''' Clamp Minimum Scale ("keep this sprite from getting very small (SPRITES only!)") {{csgo|not}}
{{#ifeq: {{{l4d}}}|onlyafter||:*'''20:''' Environmental Rain ("for [[Render Modes#Environmental|environmental rendermode]], make rain") {{src13|in}} {{csgo|not}} {{confirm|which games? may be nonfunctional.}}
:*'''21:''' Environmental Snow ("for [[Render Modes#Environmental|environmental rendermode]], make snow") {{src13|in}} {{csgo|not}} {{confirm|which games? may be nonfunctional.}}
:*'''22:''' Spotlight FX ("TEST CODE for experimental spotlight") {{src13|in}} {{csgo|not}}
:*'''23:''' Ragdoll ("HACKHACK: TEST CODE for signalling death of a ragdoll character;" ragdolls an entity but doesn't kill it) {{src13|in}} {{csgo|not}} {{confirm|which games? may be nonfunctional?}}
:*'''24:''' Fade Wider Pulse (varies alpha by ±255 over a period over a period of 0.26 s) {{src13|in}} {{csgo|not}} }}
{{#switch: {{{l4d}}}
|b4=:*'''25:''' <code>kRenderFXMax</code>/Fade Near
:::{{Todo|what does this do? may be nonfunctional}}
|onlyafter=|:*'''25:''' <code>kRenderFXMax</code>/Fade Near {{l4d|removed}} {{csgo|not}}
:::{{Todo|what does this do? may be nonfunctional}}
}}
}}
|}}<!--
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
==================================================================
DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED DEPRECATED:
==================================================================
 
-->{{#if:{{{new|}}}
|
| {{KV|Render FX|intn=renderfx|choices|Various somewhat legacy alpha effects.}}
{{ModernBug|Alpha effects from 0 to 10 are unavailable due to the bug in code in {{csgo|4.1}}}}
:{{ExpandBox|
:{{ExpandBox|
:*'''0:''' None
:*'''0:''' None
Line 47: Line 134:
{{#switch: {{{l4d}}}
{{#switch: {{{l4d}}}
|b4=:*'''25:''' <code>kRenderFXMax</code>/Fade Near
|b4=:*'''25:''' <code>kRenderFXMax</code>/Fade Near
:::{{todo|what does this do? may be nonfunctional}}
:::{{Todo|what does this do? may be nonfunctional}}
|onlyafter=|:*'''25:''' <code>kRenderFXMax</code>/Fade Near {{l4d|removed}} {{csgo|not}}
|onlyafter=|:*'''25:''' <code>kRenderFXMax</code>/Fade Near {{l4d|removed}} {{csgo|not}}
:::{{todo|what does this do? may be nonfunctional}} }}}}</onlyinclude>
:::{{Todo|what does this do? may be nonfunctional}} }}}}}}</onlyinclude></includeonly>

Revision as of 07:53, 7 March 2023

Add |l4d=b4 to hide L4D stuff or |l4d=onlyafter to hide Src13 stuff.


Render FX (renderfx) <choices>
Various somewhat legacy alpha effects.

Template:ModernBug


  • 0: None
  • 1: Slow Pulse (varies alpha by ±16 over a period of 1.5 s)
  • 2: Fast Pulse (varies alpha by ±16 over a period of 0.4 s)
  • 3: Slow Wide Pulse (varies alpha by ±64 over a period of 1.5 s)
  • 4: Fast Wide Pulse (varies alpha by ±64 over a period of 0.4 s)
  • 5: Slow Fade Away (decreases alpha by -1 per frame/(in all games since Left 4 Dead) Fades out over 4 s)
  • 6: Fast Fade Away (decreases alpha by -4 per frame/(in all games since Left 4 Dead) Fades out over 1 s)
  • 7: Slow Become Solid (increases alpha by +1 per frame/(in all games since Left 4 Dead) Fades in over 4 s)
  • 8: Fast Become Solid (increases alpha by +4 per frame/(in all games since Left 4 Dead) Fades in over 1 s)
  • 9: Slow Strobe (transparent 0.8 s, visible 0.8 s, repeat)
  • 10: Fast Strobe (transparent 0.2 s, visible 0.2 s, repeat)
  • 11: Faster Strobe (transparent 0.09 s, visible 0.09 s, repeat)
  • 12: Slow Flicker (transparent 0.18 s, visible 1.5 s, repeat)
  • 13: Fast Flicker (transparent 0.14 s, visible 0.2 s, repeat)
  • 14: Constant Glow ("NoDissipation;" purpose uncertain—for sprites?) (not in Counter-Strike: Global Offensive)
  • 15: Distort (causes unnatural flickering and position shifting)/(in all games since Left 4 Dead) Fade Out (instant; not very useful outside of code)
  • 16: Hologram (Distort + "distance fade")/(in all games since Left 4 Dead) Fade In (instant; not very useful outside of code)
  • 17: Scale Up ("Explode"/"scale up really big!" causes wild stretching of model parts) (in Source 2013)/Fade Wider Pulse (varies alpha by ±255 over a period over a period of 0.26 s) (in all games since Left 4 Dead)
    Confirm:which branches/games is it available in, and where does it do what?
  • 18: Glow Shell (purpose unclear) (in all games since Source 2013) (not in Counter-Strike: Global Offensive)
    Confirm:what does this do? and which games is it in?
  • 19: Clamp Minimum Scale ("keep this sprite from getting very small (SPRITES only!)") (not in Counter-Strike: Global Offensive)
  • 20: Environmental Rain ("for environmental rendermode, make rain") (in Source 2013) (not in Counter-Strike: Global Offensive)
    Confirm:which games? may be nonfunctional.
  • 21: Environmental Snow ("for environmental rendermode, make snow") (in Source 2013) (not in Counter-Strike: Global Offensive)
    Confirm:which games? may be nonfunctional.
  • 22: Spotlight FX ("TEST CODE for experimental spotlight") (in Source 2013) (not in Counter-Strike: Global Offensive)
  • 23: Ragdoll ("HACKHACK: TEST CODE for signalling death of a ragdoll character;" ragdolls an entity but doesn't kill it) (in Source 2013) (not in Counter-Strike: Global Offensive)
    Confirm:which games? may be nonfunctional?
  • 24: Fade Wider Pulse (varies alpha by ±255 over a period over a period of 0.26 s) (in Source 2013) (not in Counter-Strike: Global Offensive)
  • 25: kRenderFXMax/Fade Near (removed since Left 4 Dead) (not in Counter-Strike: Global Offensive)
Todo: what does this do? may be nonfunctional

Tests

start ([todo internal name (i)])
renderfx ([todo internal name (i)]) <choices>
Render FX
end ([todo internal name (i)])