CompileTeam: Difference between revisions
Jump to navigation
Jump to search
Note:In
, making a texture visible to only one team requires Proxies. As seen in the example below.
m (Added a note about cs go) |
mNo edit summary |
||
| Line 1: | Line 1: | ||
Compiles the texture to only affect a specific team.<br> | Compiles the texture to only affect a specific team.<br> | ||
{{note|In {{l4d2}}, making a texture '''visible''' to only one team requires [[Material Proxy|Proxies]]. As seen in the example below.}} | {{note|In {{l4d2}}, making a texture '''visible''' to only one team requires [[Material Proxy|Proxies]]. As seen in the example below.}} | ||
{{ | {{todo|Does it work only in {{l4d2}}?}} | ||
Example: | Example: | ||
Revision as of 23:41, 29 June 2021
Compiles the texture to only affect a specific team.
Example:
UnlitGeneric
{
$basetexture "tools\climb"
$additive 1
"%compileTeam" 2
"%compilepassbullets" 1
"%compileladder" 1
$proxRange 0.0
$proxTeam 1.0
$one 1.0
Proxies
{
PlayerTeam
{
team 3
resultVar $proxTeam
}
Subtract
{
srcVar1 $one
srcVar2 $proxRange
resultVar $alpha
}
Multiply
{
srcVar1 $alpha
srcVar2 $proxTeam
resultVar $alpha
}
TextureScroll
{
texturescrollvar $baseTextureTransform
texturescrollrate 1
texturescrollangle 90.00
}
}
}