@Kopernicus:FOR[OPX-SarnusPlus]:HAS[@OPX_SarnusPlus_Settings:HAS[#OvokRevamp[False]]]
{
    @Body[Ovok]
    {
        %Orbit
		{
			%semiMajorAxis = 19470000
            @referenceBody = Sarnus
            %inclination = 0.507
            %eccentricity = 0.002
		}
        %Properties
        {
            %sphereOfInfluence = 18000
            %radius = 4800
            %geeASL = 0.001
            %timewarpAltitudeLimits = 0 0 0 0 0 0 0 0
        }
        %PQS
        {
            %Mods
            {
                %VertexHeightMap
                {
                    %deformity = 2584
                }
            }
        }
    }
}

@Kopernicus:FOR[OPX-SarnusPlus]:HAS[@OPX_SarnusPlus_Settings:HAS[#OvokRevamp[True]]]
{
    !Body[Ovok] {}
	Body
    {
        name = Ovok

		Debug
		{
			exportMesh = true
			update = true
		}
		cacheFile = OPX-SarnusPlus/Cache/NewOvok.bin		
        Template
        {
            name = Minmus
            removePQSMods = VertexPlanet, LandControl
        }
        Properties
        {
			displayName = #LOC_OPX-SP_Ovok_Name
			description = #LOC_OPX-SP_Ovok_Desc
			radius = 4800
			geeASL = 0.0005
			tidallyLocked = True
			initialRotation = 235
			timewarpAltitudeLimits = 0 0 0 0 0 0 46800 93600
			ScienceValues
			{
				landedDataValue = 12
				splashedDataValue = 1
				flyingLowDataValue = 1
				flyingHighDataValue = 1
				inSpaceLowDataValue = 9
				inSpaceHighDataValue = 8
				recoveryValue = 8
				spaceAltitudeThreshold =  5000
			}
			biomeMap = OPX-SarnusPlus/Textures/PluginData/Ovok_Biome.png
            Biomes
            {
                Biome
                {
                    name = Macula Oblongata
					displayName = #LOC_OPX-SP_Ovok_Biome_MO
					value = 1.0
                    color = #2c2b2b
                }
                Biome
                {
                    name = Tasi Region
		    		displayName = #LOC_OPX-SP_Ovok_Biome_TR
                    value = 1.0
                    color = #969595
                }
			}		
        }
        Orbit
        {
            referenceBody = Sarnus
            color = 0.690196,0.768627,0.870588,1
            inclination = 0.507
            eccentricity = 0.002
			semiMajorAxis = 19470000
            longitudeOfAscendingNode = 55
            argumentOfPeriapsis = 0
			meanAnomalyAtEpoch = 1.72
            epoch = 751.7
			iconTexture = OPX-UrlumPlus/Textures/PluginData/Small.png
        }
		ScaledVersion
		{
			type = Vacuum
			fadeStart = 15000
			fadeEnd = 20000
			OnDemand
			{
				texture = OPX-SarnusPlus/Textures/PluginData/Ovok_Color.dds
				normals = OPX-SarnusPlus/Textures/PluginData/Ovok_Normal.dds
			}
		}
		PQS
        {	
			fadeStart = 26000
			fadeEnd = 52000
			deactivateAltitude = 52260
			minLevel = 1
			maxLevel = 1
			minDetailDistance = 6
			maxQuadLengthsPerFrame = 0.03			
			materialType = AtmosphericExtra
			allowFootprints = True
			Material
			{
				saturation = 1
				contrast = 1.05
				tintColor = 1,1,1,0
				powerNear = 0.5
				powerFar = 0.5
				groundTexStart = 0
				groundTexEnd = 9000
				steepPower = 1
				steepTexStart = 0
				steepTexEnd = 9000
				steepTex = OPX-SarnusPlus/Textures/PluginData/ice.dds
				steepTexScale = 1,1
				steepTexOffset = 0,0
				steepBumpMap = OPX-SarnusPlus/Textures/PluginData/ice_normal.dds
				steepBumpMapScale = 1,1
				steepBumpMapOffset = 0,0
				steepNearTiling = 5000
				steepTiling = 50
				lowTex = OPX-SarnusPlus/Textures/PluginData/ice.dds
				lowTexScale = 1,1
				lowTexOffset = 0,0
				lowBumpMap = OPX-SarnusPlus/Textures/PluginData/ice_normal.dds
				lowBumpMapScale = 1,1
				lowBumpMapOffset = 0,0
				lowNearTiling = 5000
				lowMultiFactor = 50
				lowBumpNearTiling = 5000
				lowBumpFarTiling = 50
				midTex = OPX-SarnusPlus/Textures/PluginData/ice.dds
				midTexScale = 1,1
				midTexOffset = 0,0
				midBumpMap = OPX-SarnusPlus/Textures/PluginData/ice_normal.dds
				midBumpMapScale = 1,1
				midBumpMapOffset = 0,0
				midNearTiling = 5000
				midMultiFactor = 50
				midBumpNearTiling = 5000
				midBumpFarTiling = 50
				highTex = OPX-SarnusPlus/Textures/PluginData/ice.dds
				highTexScale = 1,1
				highTexOffset = 0,0
				highBumpMap = OPX-SarnusPlus/Textures/PluginData/ice_normal.dds
				highBumpMapScale = 1,1
				highBumpMapOffset = 0,0
				highNearTiling = 5000
				highMultiFactor = 50
				highBumpNearTiling = 5000
				highBumpFarTiling = 50
				lowStart = 0
				lowEnd = 0.33
				highStart = 0.66
				highEnd = 1
				globalDensity = -8E-06
				fogColorRampScale = 1,1
				fogColorRampOffset = 0,0
				planetOpacity = 1
			}
            Mods
            {			
                VertexColorMap
				{
					map = OPX-SarnusPlus/Textures/PluginData/Ovok_Color.dds
					order = 9999993
					enabled = true
				}
				VertexHeightOblateAdvanced
				{
					oblateMode = CustomEllipsoid
					a = 1.60316667
					b = 1.0661157
					c = 1
				}
				VertexSimplexHeight
				{
					seed = 2211221
					deformity = 0.01
					octaves = 12.0
					persistence = 0.7
					frequency = 10
					enabled = true
					order = 100
				}
            }
        }
    }
}
