Template:KV BaseFadeProp: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
'''fademindist'''
{{ScrollBox|title=BaseFadeProp|
: <float> Start Fade Dist/Pixels - Distance at which the prop starts to fade. (-1 = Use ''fademaxdist''.){{note|If this entity is in a [[3D Skybox]], this value will automatically be scaled properly.}}
; Start Fade Dist <code><[[float]]></code>
* '''fademaxdist'''
; End Fade Dist <code><float></code>
: <float> End Fade Dist/Pixels - Max fade distance at which the prop is visible. (0 = Don't fade out.){{note|If this entity is in a [[3D Skybox]], this value will automatically be scaled properly.}}
: Distances at which the prop start and finish fading.
* '''fadescale'''
:* If start fade is <0, the prop will disappear instantly when end fade is hit.
: <float> Fade Scale - If you specify a fade in the [[worldspawn]], or if the engine is running under dx7, the engine will forcibly fade out props even if ''fademindist''/''fademaxdist'' isn't specified. This scale factor gives you some control over the fade. Using 0 here turns off the forcible fades. Numbers smaller than 1 cause the prop to fade out at further distances, and greater than 1 cause it to fade out at closer distances.
:* If end fade is <0, the prop won't disappear at all. This is the default behaviour.
: The values will scaled appropriately if the prop is in a [[3D Skybox]].
; Fade Scale <code><float></code>
: If you specify so in [[worldspawn]], or if the engine is running below DirectX7, props will forcibly fade even the distances above aren't specified. This value gives you some control over when this happens: numbers smaller than 1 cause the prop to fade out at further distances, and greater than 1 cause it to fade out at closer distances. Using 0 turns off the forced fade altogether.
}}

Revision as of 10:00, 20 July 2009

BaseFadeProp:
Start Fade Dist <float>
End Fade Dist <float>
Distances at which the prop start and finish fading.
  • If start fade is <0, the prop will disappear instantly when end fade is hit.
  • If end fade is <0, the prop won't disappear at all. This is the default behaviour.
The values will scaled appropriately if the prop is in a 3D Skybox.
Fade Scale <float>
If you specify so in worldspawn, or if the engine is running below DirectX7, props will forcibly fade even the distances above aren't specified. This value gives you some control over when this happens: numbers smaller than 1 cause the prop to fade out at further distances, and greater than 1 cause it to fade out at closer distances. Using 0 turns off the forced fade altogether.