List of material proxies: Difference between revisions
m (Robot: Automated text replacement (-\{\|\r +{| class=standard-table)) |
Solokiller (talk | contribs) m (added more info to AnimatedTexture proxy) |
||
Line 246: | Line 246: | ||
| <code>AnimatedTexture</code> || Increments frame variable || | | <code>AnimatedTexture</code> || Increments frame variable || | ||
''animatedtexturevar'' | ''animatedtexturevar'' | ||
* Texture to increment frame for (i.e. <code>$basetexture</code>, <code>$bumpmap</code>) | * Texture to increment frame for (i.e. <code>$basetexture</code>, <code>$bumpmap</code>, <code>$normalmap</code> (both <code>$bumpmap</code> and <code>$normalmap</code> use <code>$bumpframe</code>)) | ||
''animatedtextureframenumvar'' | ''animatedtextureframenumvar'' | ||
* Frame variable to increment (i.e. <code>$frame</code>) | * Frame variable to increment (i.e. <code>$frame</code>, <code>$bumpframe</code>) | ||
''animatedtextureframerate'' | ''animatedtextureframerate'' | ||
* Framerate in frames per second | * Framerate in frames per second |
Revision as of 03:53, 26 July 2009
Proxy list
The following proxies are defined in the client DLL for use in any Source game.
Proxy Name | Description | Variables |
---|---|---|
Add |
Adds two variables together. |
srcVar1
srcVar2
resultVar
|
Multiply |
Multiplies two variables together. |
srcVar1
srcVar2
resultVar
|
Subtract |
Subtracts the second variable from the first. |
srcVar1
srcVar2
resultVar
|
Divide |
Divides the first variable by the second. |
srcVar1
srcVar2
resultVar
|
Equals |
Copies a variable to the result variable. |
srcVar1
resultVar
|
Abs |
Computes the absolute value of a variable. |
srcVar1
resultVar
|
Frac |
Returns the fractional component of a number.![]() |
srcVar1
|
Exponential |
Computes ( A * e (srcVar1+B) ). |
srcVar1
scale
offset
minVal
maxVal
resultVar
|
Clamp |
Clamps a variable to a specified range of values. |
srcVar1
min
max
resultVar
|
LessOrEqual |
Returns different values based relation of supplied variables. |
srcVar1
srcVar1
lessEqualVar
greaterVar
resultVar
|
Sine |
Creates a sine wave. |
sineperiod
sinemin
sinemax
timeoffset
resultVar
|
LinearRamp |
Produces an ever increasing value. |
rate
initialValue
resultVar
|
UniformNoise |
Produces a noisy signal where each value is equally likely to occur |
minVal
maxVal
resultVar
|
GaussianNoise |
Produces a noisy signal where values are near the average. |
mean
halfWidth
minVal
maxVal
resultVar
|
MatrixRotate |
Creates a rotation matrix from the provided axis and angle. |
axisVar
angle
resultVar
|
PlayerProximity |
Stores the distance from the entity the material is on to the player into a variable. ![]() |
scale
resultVar
|
PlayerView |
Stores the dot product of the view direction + the direction from the camera to the entity the material is on.![]() |
scale
resultVar
|
PlayerSpeed |
Stores the speed of the player into a variable. |
scale
resultVar
|
PlayerPosition |
Stores the player's position into a variable.![]() $baseTextureOffset or $color . |
scale
resultVar
|
EntitySpeed |
Stores the entity's speed into a variable.![]() |
scale
resultVar
|
TextureTransform |
Generates a texture transform matrix. |
centerVar
scaleVar
rotateVar
translateVar
resultVar
|
Empty |
Used to comment out proxies. Surround a bunch of proxies with the empty proxy to cause those proxies to not operate. | |
TextureScroll |
Returns a transform matrix or vector that will translate a texture at a given angle at a given rate. |
textureScrollVar
textureScrollRate
textureScrollAngle
|
ToggleTexture |
Toggles a texture based on the frame number set by the attached entity.![]() |
toggleTextureVar
toggleTextureFrameNumVar
toggleShouldWrap
|
EntityRandom |
A proxy that returns a random number associated with the entity the material is applied to. Can be helpful for making animated textures not all be in sync. |
scale
resultVar
|
CurrentTime |
Returns the current time as a float. |
resultVar
|
PlayerHealth |
Stores the player health (0-1) in a variable. |
scale
resultVar
|
PlayerDamageTime |
Stores the time since the player was last damaged, in a variable. |
scale
resultVar
|
MaterialModify |
Sets the base texture to a value held by the entity (used for entity controlled texture animations).![]() |
No return value. |
WaterLOD |
Coordinates water LOD values between the map's env_waterlod entity and the materials internal values. |
![]()
![]() No return value. |
BreakableSurface |
Sets the base texture to a material name held by the entity (used for switching surface material on shatter)![]() func_breakablesurface entity. |
No return value. |
ConveyorScroll |
Returns the scroll parameters for a texture used as a conveyor. ![]() func_conveyor entity. |
textureScrollVar
![]() $baseTextureOffset ). |
LampBeam |
Modulates the material's alpha value based on angle between the beam's direction and the viewer's eye point. This is used to make the beams of volumetric light on lights fade as you look at them dead on.![]() |
No return value. |
LampHalo |
Modulates the material's alpha value based on angle between the beam's direction and the viewer's eye point. Like the LampBeam proxy, but used for the halo at the beam's base. ![]() |
No return value. |
AnimatedTexture |
Increments frame variable |
animatedtexturevar
animatedtextureframenumvar
animatedtextureframerate
|
Camo |
![]() |
camopatterntexture camoboundingboxmin camoboundingboxmax surfaceprop |
HeliBlade |
||
ParticleSphereProxy |
![]() particle_proxies.cpp . Valve remark: "FIXME: Is this even needed any more?" |
No known parameters. |
Shadow |
![]() |
No known parameters. |
ShadowModel |
![]() |
No known parameters. |