protected override void SetupPQS(PQS pqs) { //MUA HA HA HA... if (SpaceKraken) { //disable the special craters var decals = pqs.GetPQSMods <PQSMod_MapDecal> (); foreach (var decal in decals) { decal.modEnabled = false; } var flattens = pqs.GetPQSMods <PQSMod_MapDecal> (); foreach (var flatten in flattens) { flatten.modEnabled = false; } //disable the heightmap, scatter, and colormap var scatter = pqs.GetPQSMod <PQSLandControl> (); scatter.modEnabled = false; var heightNoise = pqs.GetPQSMod <PQSMod_VertexHeightNoise> (); heightNoise.modEnabled = false; //collect gameobjects var _Color = pqs.transform.FindChild("_Color").gameObject; var _Height = pqs.transform.FindChild("_Height").gameObject; var simplexColor = pqs.GetPQSMod <PQSMod_VertexSimplexNoiseColor> (); var simplex = pqs.GetPQSMod <PQSMod_VertexSimplexHeightAbsolute> (); simplexColor.modEnabled = false; //the guy can't have perfectly flat skin, can he? simplex.deformity = 50; simplex.frequency = 4; simplex.octaves = 4; simplex.persistence = 0.4; simplex.seed = 4; simplex.modEnabled = true; simplex.order = 6; simplex.OnSetup(); var height = _Height.AddComponent <PQSMod_VertexHeightMap> (); height.heightMap = CreateMapSO(Utils.LoadTexture("Height/Kraken_height.png")); height.heightMapDeformity = 25000; height.heightMapOffset = 50.0; height.scaleDeformityByRadius = false; height.modEnabled = true; height.order = 5; height.sphere = pqs; height.OnSetup(); var color = _Height.AddComponent <PQSMod_VertexColorMap> (); color.vertexColorMap = CreateColorMapSO(Utils.LoadTexture("Scaled/Kraken_color.png")); color.modEnabled = true; color.order = 200; color.sphere = pqs; color.OnSetup(); Log("THE KRAKEN HAS RISEN! >:D"); } else { Log("The kraken decided to sleep in today... :'("); } pqs.RebuildSphere(); }