Material
GetMaterialAtCrosshair
[EN] Returns a string containing the material name [RU] ΠΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΡΡΡΠΎΠΊΡ, ΡΠΎΠ΄Π΅ΡΠΆΠ°ΡΡΡ Π½Π°Π·Π²Π°Π½ΠΈΠ΅ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Π°.
Replace
[EN] Creates a proxy for the original material using the new material as an override [RU] Π‘ΠΎΠ·Π΄Π°Π΅Ρ ΠΏΡΠΎΠΊΡΠΈ Π΄Π»Ρ ΠΈΡΡ ΠΎΠ΄Π½ΠΎΠ³ΠΎ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Π°, ΠΈΡΠΏΠΎΠ»ΡΠ·ΡΡ Π½ΠΎΠ²ΡΠΉ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π» Π² ΠΊΠ°ΡΠ΅ΡΡΠ²Π΅ Π·Π°ΠΌΠ΅Π½Ρ
Parameters:original material name, new material name
[EN] Replacing a LightmappedGeneric with a WorldVertexTransition it may result in an invisible texture [RU] ΠΠ°ΠΌΠ΅Π½Π° LightmappedGeneric Π½Π° WorldVertexTransition ΠΌΠΎΠΆΠ΅Ρ ΠΏΡΠΈΠ²Π΅ΡΡΠΈ ΠΊ Π½Π΅Π²ΠΈΠ΄ΠΈΠΌΠΎΠΉ ΡΠ΅ΠΊΡΡΡΡΠ΅.
RefreshProxy
[EN] Applies key values to the material [RU] ΠΡΠΈΠΌΠ΅Π½ΡΠ΅Ρ ΠΊΠ»ΡΡΠ΅Π²ΡΠ΅ Π·Π½Π°ΡΠ΅Π½ΠΈΡ ΠΊ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Ρ
Parameters:material_name
SetProxyKeyValue
[EN] Sets key values of an overriden material [RU] Π£ΡΡΠ°Π½Π°Π²Π»ΠΈΠ²Π°Π΅Ρ ΠΊΠ»ΡΡΠ΅Π²ΡΠ΅ Π·Π½Π°ΡΠ΅Π½ΠΈΡ Π·Π°ΠΌΠ΅ΡΠ°Π΅ΠΌΠΎΠ³ΠΎ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Π°
Parameters:material_name, key, value
DestroyProxy
[EN] Destroys the proxy [RU] Π£Π½ΠΈΡΡΠΎΠΆΠ°Π΅Ρ ΠΏΡΠΎΠΊΡΠΈ
Parameters:material_name
CreateProxy
[EN] Creates a proxy to override material properties [RU] Π‘ΠΎΠ·Π΄Π°Π΅Ρ ΠΏΡΠΎΠΊΡΠΈ Π΄Π»Ρ ΠΏΠ΅ΡΠ΅ΠΎΠΏΡΠ΅Π΄Π΅Π»Π΅Π½ΠΈΡ ΡΠ²ΠΎΠΉΡΡΠ² ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Π°
Parameters:material_name
Refresh
[EN] Used to apply new set key values. [RU] ΠΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΡΡΡ Π΄Π»Ρ ΠΏΡΠΈΠΌΠ΅Π½Π΅Π½ΠΈΡ Π½ΠΎΠ²ΠΎΠ³ΠΎ Π½Π°Π±ΠΎΡΠ° ΠΊΠ»ΡΡΠ΅Π²ΡΡ Π·Π½Π°ΡΠ΅Π½ΠΈΠΉ.
Parametersmaterial_index
Return values: Returns if the operation succeeded.
Note: This function can only be used in functions with Material callback. More keys and values can be found below: https://developer.valvesoftware.com/wiki/Category:List_of_Shader_Parameters https://developer.valvesoftware.com/wiki/VertexLitGeneric
SetKeyValue
[EN] Used to set key values. [RU] ΠΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΡΡΡ Π΄Π»Ρ ΡΡΡΠ°Π½ΠΎΠ²ΠΊΠΈ ΠΊΠ»ΡΡΠ΅Π²ΡΡ Π·Π½Π°ΡΠ΅Π½ΠΈΠΉ.
Parameters:material_index, key, value
Return values: Returns if the operation succeeded.
Note: This function can only be used in functions with Material callback. More keys and values can be found below: https://developer.valvesoftware.com/wiki/Category:List_of_Shader_Parameters https://developer.valvesoftware.com/wiki/VertexLitGeneric
Get
[EN] Used to get material index. [RU] ΠΡΠΏΠΎΠ»ΡΠ·ΡΠ΅ΡΡΡ Π΄Π»Ρ ΠΏΠΎΠ»ΡΡΠ΅Π½ΠΈΡ ΠΈΠ½Π΄Π΅ΠΊΡΠ° ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π»Π°.
Parameters:name
Return values: Returns 0 if material doesn't exist.
Note: This function can only be used in functions with Material callback.
Destroy
[EN] Returns true if material was destroyed successfully.
[RU] ΠΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ ΠΈΡΡΠΈΠ½Ρ, Π΅ΡΠ»ΠΈ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π» Π±ΡΠ» ΡΠ½ΠΈΡΡΠΎΠΆΠ΅Π½ ΡΡΠΏΠ΅ΡΠ½ΠΎ.
Parameters:name
Return values: Returns true if material was destroyed successfully.
Create
[EN] Returns true if material was created successfully or false otherwise. [RU] ΠΠΎΠ·Π²ΡΠ°ΡΠ°Π΅Ρ true, Π΅ΡΠ»ΠΈ ΠΌΠ°ΡΠ΅ΡΠΈΠ°Π» Π±ΡΠ» ΡΠΎΠ·Π΄Π°Π½ ΡΡΠΏΠ΅ΡΠ½ΠΎ, ΠΈΠ»ΠΈ false Π² ΠΏΡΠΎΡΠΈΠ²Π½ΠΎΠΌ ΡΠ»ΡΡΠ°Π΅.
Parameters:name
Return values: Returns true if material was created successfully or false otherwise.
Last updated