Astropilot / ValheimTooler

A fancy cheats tool for the Valheim game
MIT License
52 stars 12 forks source link

Add Terrain Modification #25

Closed scheissegalo closed 10 months ago

scheissegalo commented 1 year ago

I've used this "Ground" class from Gungnir mod: LINK to add another window "Terrain Shaper":

            GUILayout.Label("Terrain Editing");

            GUILayout.Label("Radius: " + radius.ToString("F1"));
            radius = GUILayout.HorizontalSlider(radius, 1f, 50f);

            GUILayout.Label("Depth: " + depth.ToString("F2"));
            depth = GUILayout.HorizontalSlider(depth, 1f, 10f);

            GUILayout.Label("Strength: " + strength.ToString("F2"));
            strength = GUILayout.HorizontalSlider(strength, 0.001f, 0.1f);

            if (GUILayout.Button("Flatten"))
            {
                Ground.Level(Player.m_localPlayer.transform.position, radius);
            }

            if (GUILayout.Button("Lower"))
            {
                Ground.Lower(Player.m_localPlayer.transform.position, radius, depth, strength);
            }

            if (GUILayout.Button("Rise"))
            {
                Ground.Raise(Player.m_localPlayer.transform.position, radius, depth, strength);
            }

            if (GUILayout.Button("Reset"))
            {
                Ground.Reset(Player.m_localPlayer.transform.position, radius);
            }

you might want to add it + wind settings, nice feature and makes the tool complete :D

Astropilot commented 10 months ago

Feature added in the new release! https://github.com/Astropilot/ValheimTooler/releases/tag/v1.9.0