ArmA 2 Water Color Config

ArmA 2 Forum, ArmA 2 Home, ArmA 2 Config, ArmA 2 File Formats, ArmA 2 Missions, ArmA 2 3D Modeling, ArmA 2 Scripting, ArmA 2 Terrain, ArmA 2 Texturing, ArmA 2 Tools

ArmA 2 Terrain Water Color Config

Correct way is to define a new custom water class with the personal TAG and assign it in your world

class CfgMaterials
{
    class Water;
    class MYTAG_Water: Water
    {
        ambient[] = {0.0264,0.03,0.013,0.4};
        diffuse[] = {0.13,0.15,0.065,1};
        forcedDiffuse[] = {0.0264,0.03,0.013,0};
        specular[] = {1.5,1.5,1.5,0};
        emmisive[] = {0,0,0,0};

class cfgWorlds
{
    class CAWorld;
    class MYTAG_WorldName: CAWorld//or Utes/Takistan
    {
        //replace with your custom class
        seaMaterial = "#MYTAG_water";
        shoreMaterial = "#MYTAG_shore";
        shoreFoamMaterial = "#MYTAG_shoreFoam";
        shoreWetMaterial = "#MYTAG_shoreWet";
        terrainMaterial = "#MYTAG_terrain";

This is direct example from VTE config:

class CfgMaterials
{
	class Water;
 
	class VTE_WaterColor: Water
	{
		// VTE values
		ambient[] = {0.27, 0.18, 0.09, 0.8}; 
		diffuse[] = {0.27, 0.18, 0.09, 1.0};
	};
 
	class Shore;
 
	class VTE_ShoreColor: Shore
	{
		// VTE values
		ambient[] = {0.27, 0.18, 0.1, 0.5};
		diffuse[] = {0.27, 0.18, 0.1, 0.6};
	};
 
	class ShoreFoam;
 
	class VTE_ShoreFoamColor: ShoreFoam
	{
		// VTE values
		ambient[] = {0.27, 0.18, 0.1, 0.5};
		diffuse[] = {0.27, 0.18, 0.1, 0.6};
	};
};

And terrain config:

class CfgWorlds
{
	class vte_intro: CAWorld
		// brown water color
		seaMaterial = "#VTE_WaterColor";
		shoreMaterial = "#VTE_ShoreColor";
		shoreFoamMaterial = "#VTE_ShoreFoamColor";