"VertexlitGeneric" { "$basetexture" "models/ricardo/skin4" "$halflambert" "1" Proxies { PlayerColor { resultVar $color2 // pass the player color value to Gmod default 0.23 0.35 0.41 // unused for now. } Clamp // clamp the chosen color between 1% and 125% (usually) { min 0.16 max 1.5 srcVar1 "$color2" resultVar "$color2" } Clamp // copy this value to phong tint, clamp it to 50% min. { min 0.5 max 1.0 srcVar1 "$color2" resultVar "$phongtint" } Equals // copy $color2 value to exterior variable. this makes it { // no longer a RGB array but a single float instead (!??) srcVar1 "$color2" resultVar "$PhongBrightnessScalar" } Multiply // multiply $phongtint by this new float value. { srcVar1 "$phongtint" srcVar2 "$phongBrightnessScalar" resultVar "$phongtint" } Clamp // the result of this multiply doesn't go any lower than 20% { min 0.25 max 0.70 srcVar1 "$phongtint" resultVar "$phongtint" } } }