├── .gitignore ├── CheatMenu ├── .vs │ └── CheatMenu │ │ └── v14 │ │ └── .suo ├── Atmosphere.cs ├── CStructure.cs ├── CheatMenu.csproj ├── CheatMenu.sln ├── CheatMenu.v12.suo ├── CheatMenuComponent.cs ├── FPController.cs ├── Mod │ ├── CheatMenu.dll │ └── CheatMenu.pdb ├── ModInfo.xml ├── NewEnemyHealth.cs ├── NewWeatherSystem.cs ├── Stats.cs ├── THealth.cs ├── entryAdd.tpl └── obj │ └── x86 │ └── Release │ ├── CheatMenu.csproj.FileListAbsolute.txt │ ├── CheatMenu.csprojResolveAssemblyReference.cache │ ├── CheatMenu.dll │ ├── CheatMenu.pdb │ └── DesignTimeResolveAssemblyReferencesInput.cache ├── DevPicker ├── .vs │ └── DevPicker │ │ └── v14 │ │ └── .suo ├── DevPicker.csproj ├── DevPicker.sln ├── Mod │ ├── DevPicker.dll │ └── DevPicker.pdb ├── ModInfo.xml ├── Picker.cs └── obj │ └── x86 │ └── Release │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── DevPicker.csproj.FileListAbsolute.txt │ ├── DevPicker.csprojResolveAssemblyReference.cache │ ├── DevPicker.dll │ └── DevPicker.pdb ├── LICENSE ├── Map ├── .vs │ └── Map │ │ └── v14 │ │ └── .suo ├── Downloader.cs ├── IngameMap.cs ├── Map.cs ├── Map.csproj ├── Map.sln ├── Mod │ ├── Map.dll │ └── Map.pdb ├── ModInfo.xml ├── Resources │ └── Markers.png └── obj │ └── x86 │ └── Release │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── Map.csproj.FileListAbsolute.txt │ ├── Map.csprojResolveAssemblyReference.cache │ ├── Map.dll │ └── Map.pdb ├── README.md ├── RemoveBuildings ├── .vs │ └── RemoveBuildings │ │ └── v14 │ │ └── .suo ├── Mod │ ├── RemoveBuildings.dll │ └── RemoveBuildings.pdb ├── ModInfo.xml ├── NewCreate.cs ├── RemoveBuildings.cs ├── RemoveBuildings.csproj ├── RemoveBuildings.sln ├── RemoveBuildings.v12.suo ├── Resources │ └── RemoveBuilding.png └── obj │ └── x86 │ └── Release │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── RemoveBuildings.csproj.FileListAbsolute.txt │ ├── RemoveBuildings.csprojResolveAssemblyReference.cache │ ├── RemoveBuildings.dll │ └── RemoveBuildings.pdb ├── SaveEverywhere ├── Mod │ ├── SaveEverywhere.dll │ └── SaveEverywhere.pdb ├── ModInfo.xml ├── SaveEverywhere.csproj ├── SaveEverywhere.sln ├── SaveEverywhere.v12.suo ├── Saver.cs └── obj │ └── x86 │ └── Release │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ ├── SaveEverywhere.csproj.FileListAbsolute.txt │ ├── SaveEverywhere.csprojResolveAssemblyReference.cache │ ├── SaveEverywhere.dll │ └── SaveEverywhere.pdb └── SpawnCommand ├── .vs └── SpawnCommand │ └── v14 │ └── .suo ├── Mod ├── SpawnCommand.dll └── SpawnCommand.pdb ├── ModInfo.xml ├── SpawnCommand.cs ├── SpawnCommand.csproj ├── SpawnCommand.sln └── obj └── x86 └── Release ├── DesignTimeResolveAssemblyReferencesInput.cache ├── SpawnCommand.csproj.FileListAbsolute.txt ├── SpawnCommand.csprojResolveAssemblyReference.cache ├── SpawnCommand.dll └── SpawnCommand.pdb /.gitignore: -------------------------------------------------------------------------------- 1 | /Core 2 | /Spawner 3 | -------------------------------------------------------------------------------- /CheatMenu/.vs/CheatMenu/v14/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FluffyFishGames/ModAPI-The-Forest-Mods/2e4235dbc164ba124fc9b397185d51fa2976e2f8/CheatMenu/.vs/CheatMenu/v14/.suo -------------------------------------------------------------------------------- /CheatMenu/Atmosphere.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace CheatMenu 8 | { 9 | class Atmosphere : TheForestAtmosphere 10 | { 11 | protected override void Update() 12 | { 13 | if (CheatMenuComponent.CaveLight > 0f && InACave) 14 | { 15 | CaveAddLight1 = new Color(CheatMenuComponent.CaveLight, CheatMenuComponent.CaveLight, CheatMenuComponent.CaveLight); 16 | CaveAddLight2 = new Color(CheatMenuComponent.CaveLight, CheatMenuComponent.CaveLight, CheatMenuComponent.CaveLight); ; 17 | CaveAddLight1Intensity = CheatMenuComponent.CaveLight; 18 | CaveAddLight2Intensity = CheatMenuComponent.CaveLight; 19 | base.Update(); 20 | } 21 | else 22 | { 23 | base.Update(); 24 | } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /CheatMenu/CStructure.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace CheatMenu 7 | { 8 | class CStructure : TheForest.Buildings.Creation.Craft_Structure 9 | { 10 | protected override void Update() 11 | { 12 | if (CheatMenuComponent.InstantBuild && ModAPI.Input.GetButtonDown("InstantBuild")) 13 | { 14 | for (int i = 0; i < this._requiredIngredients.Count; i++) 15 | { 16 | int a = _requiredIngredients[i]._itemID; 17 | for (int j = 0; j < a; j++) 18 | this.AddIngrendient_Actual(i, true); 19 | } 20 | } 21 | else 22 | { 23 | base.Update(); 24 | } 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /CheatMenu/CheatMenu.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Release 6 | x86 7 | {53821041-E269-4717-BAED-3C9C6836E83F} 8 | Library 9 | Properties 10 | CheatMenu 11 | CheatMenu 12 | v3.5 13 | 512 14 | 15 | 16 | 17 | pdbonly 18 | true 19 | Mod\ 20 | TRACE 21 | prompt 22 | 4 23 | 24 | 25 | 26 | 27 | 28 | 29 | ../../../libs/BaseModLib.dll 30 | False 31 | 32 | 33 | ../../../modlib/TheForest/TheForest_data/Managed/Assembly-CSharp-firstpass.dll 34 | False 35 | 36 | 37 | ../../../modlib/TheForest/TheForest_data/Managed/Assembly-CSharp.dll 38 | False 39 | 40 | 41 | ../../../modlib/TheForest/TheForest_data/Managed/Assembly-UnityScript-firstpass.dll 42 | False 43 | 44 | 45 | ../../../modlib/TheForest/TheForest_data/Managed/Assembly-UnityScript.dll 46 | False 47 | 48 | 49 | ../../../modlib/TheForest/TheForest_data/Managed/Boo.Lang.dll 50 | False 51 | 52 | 53 | ../../../modlib/TheForest/TheForest_data/Managed/Mono.Security.dll 54 | False 55 | 56 | 57 | ../../../modlib/TheForest/TheForest_data/Managed/UnityScript.Lang.dll 58 | False 59 | 60 | 61 | ../../../modlib/TheForest/TheForest_data/Managed/AmplifyColor.dll 62 | False 63 | 64 | 65 | ../../../modlib/TheForest/TheForest_data/Managed/AmplifyMotion.dll 66 | False 67 | 68 | 69 | ../../../modlib/TheForest/TheForest_data/Managed/bolt.dll 70 | False 71 | 72 | 73 | ../../../modlib/TheForest/TheForest_data/Managed/bolt.user.dll 74 | False 75 | 76 | 77 | ../../../modlib/TheForest/TheForest_data/Managed/Boo.Lang.dll 78 | False 79 | 80 | 81 | ../../../modlib/TheForest/TheForest_data/Managed/Mono.Posix.dll 82 | False 83 | 84 | 85 | ../../../modlib/TheForest/TheForest_data/Managed/Mono.Security.dll 86 | False 87 | 88 | 89 | ../../../modlib/TheForest/TheForest_data/Managed/mscorlib.dll 90 | False 91 | 92 | 93 | ../../../modlib/TheForest/TheForest_data/Managed/Pathfinding.ClipperLib.dll 94 | False 95 | 96 | 97 | ../../../modlib/TheForest/TheForest_data/Managed/Pathfinding.Ionic.Zip.Reduced.dll 98 | False 99 | 100 | 101 | ../../../modlib/TheForest/TheForest_data/Managed/Pathfinding.JsonFx.dll 102 | False 103 | 104 | 105 | ../../../modlib/TheForest/TheForest_data/Managed/Pathfinding.Poly2Tri.dll 106 | False 107 | 108 | 109 | ../../../modlib/TheForest/TheForest_data/Managed/PlayMaker.dll 110 | False 111 | 112 | 113 | ../../../modlib/TheForest/TheForest_data/Managed/Rewired_Core.dll 114 | False 115 | 116 | 117 | ../../../modlib/TheForest/TheForest_data/Managed/SteamworksManaged.dll 118 | False 119 | 120 | 121 | ../../../modlib/TheForest/TheForest_data/Managed/System.Configuration.dll 122 | False 123 | 124 | 125 | ../../../modlib/TheForest/TheForest_data/Managed/System.Core.dll 126 | False 127 | 128 | 129 | ../../../modlib/TheForest/TheForest_data/Managed/System.dll 130 | False 131 | 132 | 133 | ../../../modlib/TheForest/TheForest_data/Managed/System.Security.dll 134 | False 135 | 136 | 137 | ../../../modlib/TheForest/TheForest_data/Managed/System.Xml.dll 138 | False 139 | 140 | 141 | ../../../modlib/TheForest/TheForest_data/Managed/UnityEngine.dll 142 | False 143 | 144 | 145 | ../../../modlib/TheForest/TheForest_data/Managed/UnityEngine.Analytics.dll 146 | False 147 | 148 | 149 | ../../../modlib/TheForest/TheForest_data/Managed/UnityEngine.Networking.dll 150 | False 151 | 152 | 153 | ../../../modlib/TheForest/TheForest_data/Managed/UnityEngine.UI.dll 154 | False 155 | 156 | 157 | ../../../modlib/TheForest/TheForest_data/Managed/UnityScript.Lang.dll 158 | False 159 | 160 | 161 | ../../../modlib/TheForest/TheForest_data/Managed/udpkit.dll 162 | False 163 | 164 | 165 | ../../../modlib/TheForest/TheForest_data/Managed/udpkit.common.dll 166 | False 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | -------------------------------------------------------------------------------- /CheatMenu/CheatMenu.sln: -------------------------------------------------------------------------------- 1 | Microsoft Visual Studio Solution File, Format Version 12.00 2 | # Visual Studio 2013 3 | VisualStudioVersion = 12.0.21005.1 4 | MinimumVisualStudioVersion = 10.0.40219.1 5 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CheatMenu", "CheatMenu.csproj", "{53821041-E269-4717-BAED-3C9C6836E83F}" 6 | EndProject 7 | Global 8 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {53821041-E269-4717-BAED-3C9C6836E83F}.Release|x86.ActiveCfg = Release|x86 13 | {53821041-E269-4717-BAED-3C9C6836E83F}.Release|x86.Build.0 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(SolutionProperties) = preSolution 16 | HideSolutionNode = FALSE 17 | EndGlobalSection 18 | EndGlobal -------------------------------------------------------------------------------- /CheatMenu/CheatMenu.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FluffyFishGames/ModAPI-The-Forest-Mods/2e4235dbc164ba124fc9b397185d51fa2976e2f8/CheatMenu/CheatMenu.v12.suo -------------------------------------------------------------------------------- /CheatMenu/CheatMenuComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | using System.Reflection; 7 | 8 | namespace CheatMenu 9 | { 10 | public class CheatMenuComponent : MonoBehaviour 11 | { 12 | protected bool visible = false; 13 | public static bool GodMode = false; 14 | public static float SpeedMultiplier = 1f; 15 | public static float JumpMultiplier = 1f; 16 | public static bool FlyMode = false; 17 | public static bool NoClip = false; 18 | public static float TimeSpeed = 0.13f; 19 | public static bool InstantTree = false; 20 | public static bool InstantBuild = false; 21 | public static float CaveLight = 0f; 22 | public static int ForceWeather = -1; 23 | public static bool FreezeWeather = false; 24 | 25 | protected float a = 2f; 26 | protected GUIStyle labelStyle; 27 | protected static bool Already = false; 28 | 29 | [ModAPI.Attributes.ExecuteOnGameStart] 30 | static void AddMeToScene() 31 | { 32 | GameObject GO = new GameObject("__CheatMenu__"); 33 | GO.AddComponent(); 34 | } 35 | 36 | protected int Tab = 0; 37 | 38 | private void OnGUI() 39 | { 40 | if (this.visible) 41 | { 42 | GUI.skin = ModAPI.GUI.Skin; 43 | 44 | Matrix4x4 bkpMatrix = GUI.matrix; 45 | 46 | if (labelStyle == null) 47 | { 48 | labelStyle = new GUIStyle(GUI.skin.label); 49 | labelStyle.fontSize = 12; 50 | } 51 | 52 | GUI.Box(new Rect(10, 10, 400, 430), "", GUI.skin.window); 53 | this.Tab = GUI.Toolbar(new Rect(10, 10, 400, 30), this.Tab, new GUIContent[] { new GUIContent("Cheats"), new GUIContent("Environment"), new GUIContent("Player"), new GUIContent("Other") }, GUI.skin.GetStyle("Tabs")); 54 | /*this.Tab = GUI.Toggle(new Rect(10, 10, 100, 30), this.Tab == 0, "Cheats", GUI.skin.button) ? 0 : this.Tab; 55 | this.Tab = GUI.Toggle(new Rect(110, 10, 100, 30), this.Tab == 1, "Environment", GUI.skin.button) ? 1 : this.Tab; 56 | this.Tab = GUI.Toggle(new Rect(210, 10, 100, 30), this.Tab == 2, "Player", GUI.skin.button) ? 2 : this.Tab; 57 | this.Tab = GUI.Toggle(new Rect(310, 10, 100, 30), this.Tab == 3, "Other", GUI.skin.button) ? 3 : this.Tab;*/ 58 | float cY = 50f; 59 | 60 | if (Tab == 0) 61 | { 62 | GUI.Label(new Rect(20f, cY, 150f, 20f), "God mode:", labelStyle); 63 | GodMode = GUI.Toggle(new Rect(170f, cY, 20f, 30f), GodMode, ""); 64 | cY += 30f; 65 | 66 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Flymode:", labelStyle); 67 | FlyMode = GUI.Toggle(new Rect(170f, cY, 20f, 30f), FlyMode, ""); 68 | cY += 30f; 69 | 70 | if (FlyMode) 71 | { 72 | GUI.Label(new Rect(20f, cY, 150f, 20f), "No clip:", labelStyle); 73 | NoClip = GUI.Toggle(new Rect(170f, cY, 20f, 30f), NoClip, ""); 74 | cY += 30f; 75 | } 76 | 77 | GUI.Label(new Rect(20f, cY, 150f, 20f), "InstaTree:", labelStyle); 78 | InstantTree = GUI.Toggle(new Rect(170f, cY, 20f, 30f), InstantTree, ""); 79 | cY += 30f; 80 | 81 | GUI.Label(new Rect(20f, cY, 150f, 20f), "InstaBuild:", labelStyle); 82 | InstantBuild = GUI.Toggle(new Rect(170f, cY, 20f, 30f), InstantBuild, ""); 83 | cY += 30f; 84 | 85 | GUI.Label(new Rect(20f, cY, 150f, 20f), "InstaKill:", labelStyle); 86 | InstaKill = GUI.Toggle(new Rect(170f, cY, 20f, 30f), InstaKill, ""); 87 | cY += 30f; 88 | 89 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Speed:", labelStyle); 90 | SpeedMultiplier = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 210f, 30f), SpeedMultiplier, 1f, 10f); 91 | cY += 30f; 92 | 93 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Jump power:", labelStyle); 94 | JumpMultiplier = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 210f, 30f), JumpMultiplier, 1f, 10f); 95 | cY += 30f; 96 | } 97 | 98 | if (Tab == 1) 99 | { 100 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Speed of time:", labelStyle); 101 | TheForestAtmosphere.Instance.RotationSpeed = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 210f, 30f), TheForestAtmosphere.Instance.RotationSpeed, 0f, 10f); 102 | cY += 30f; 103 | if (GUI.Button(new Rect(280f, cY, 100f, 20f), "Reset")) 104 | { 105 | TheForestAtmosphere.Instance.RotationSpeed = 0.13f; 106 | } 107 | cY += 30f; 108 | 109 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Time:", labelStyle); 110 | TheForestAtmosphere.Instance.TimeOfDay = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 210f, 30f), TheForestAtmosphere.Instance.TimeOfDay, 0f, 360f); 111 | cY += 30f; 112 | 113 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Cave light:", labelStyle); 114 | CaveLight = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 210f, 30f), CaveLight, 0f, 1f); 115 | cY += 30f; 116 | 117 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Weather", labelStyle); 118 | cY += 30f; 119 | 120 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Freeze:", labelStyle); 121 | FreezeWeather = GUI.Toggle(new Rect(170f, cY, 20f, 30f), FreezeWeather, ""); 122 | cY += 30f; 123 | 124 | if (GUI.Button(new Rect(20f, cY, 180f, 20f), "Clear Weather")) 125 | { 126 | ForceWeather = 0; 127 | } 128 | cY += 30f; 129 | 130 | if (GUI.Button(new Rect(20f, cY, 180f, 20f), "Cloudy")) 131 | { 132 | ForceWeather = 4; 133 | } 134 | cY += 30f; 135 | 136 | if (GUI.Button(new Rect(20f, cY, 180f, 20f), "Light rain")) 137 | { 138 | ForceWeather = 1; 139 | } 140 | cY += 30f; 141 | 142 | if (GUI.Button(new Rect(20f, cY, 180f, 20f), "Medium rain")) 143 | { 144 | ForceWeather = 2; 145 | } 146 | cY += 30f; 147 | 148 | if (GUI.Button(new Rect(20f, cY, 180f, 20f), "Heavy rain")) 149 | { 150 | ForceWeather = 3; 151 | } 152 | cY += 30f; 153 | } 154 | 155 | if (Tab == 2) 156 | { 157 | GUI.Label(new Rect(370f, cY, 150f, 20f), "Fix", labelStyle); 158 | cY += 30f; 159 | 160 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Health:", labelStyle); 161 | if (!FixHealth) 162 | TheForest.Utils.LocalPlayer.Stats.Health = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), TheForest.Utils.LocalPlayer.Stats.Health, 0f, 100f); 163 | else 164 | FixedHealth = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), FixedHealth, 0f, 100f); 165 | GUI.Label(new Rect(340f, cY, 40f, 20f), (Mathf.RoundToInt(TheForest.Utils.LocalPlayer.Stats.Health * 10) / 10f) + ""); 166 | FixHealth = GUI.Toggle(new Rect(370f, cY, 20f, 20f), FixHealth, ""); 167 | if (FixHealth) 168 | { 169 | if (FixedHealth == -1f) 170 | FixedHealth = TheForest.Utils.LocalPlayer.Stats.Health; 171 | } 172 | else 173 | { 174 | FixedHealth = -1f; 175 | } 176 | cY += 30f; 177 | 178 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Battery charge:", labelStyle); 179 | if (!FixBatteryCharge) 180 | TheForest.Utils.LocalPlayer.Stats.BatteryCharge = (int)GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), TheForest.Utils.LocalPlayer.Stats.BatteryCharge, 0f, 100f); 181 | else 182 | FixedBatteryCharge = (int)GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), FixedBatteryCharge, 0f, 100f); 183 | GUI.Label(new Rect(340f, cY, 40f, 20f), (Mathf.RoundToInt(TheForest.Utils.LocalPlayer.Stats.BatteryCharge * 10) / 10f) + ""); 184 | FixBatteryCharge = GUI.Toggle(new Rect(370f, cY, 20f, 20f), FixBatteryCharge, ""); 185 | if (FixBatteryCharge) 186 | { 187 | if (FixedBatteryCharge == -1f) 188 | FixedBatteryCharge = TheForest.Utils.LocalPlayer.Stats.BatteryCharge; 189 | } 190 | else 191 | { 192 | FixedBatteryCharge = -1f; 193 | } 194 | cY += 30f; 195 | 196 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Fullness:", labelStyle); 197 | if (!FixFullness) 198 | TheForest.Utils.LocalPlayer.Stats.Fullness = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), TheForest.Utils.LocalPlayer.Stats.Fullness, 0f, 1f); 199 | else 200 | FixedFullness = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), FixedFullness, 0f, 1f); 201 | GUI.Label(new Rect(340f, cY, 40f, 20f), (Mathf.RoundToInt(TheForest.Utils.LocalPlayer.Stats.Fullness * 10) / 10f) + ""); 202 | FixFullness = GUI.Toggle(new Rect(370f, cY, 20f, 20f), FixFullness, ""); 203 | if (FixFullness) 204 | { 205 | if (FixedFullness == -1f) 206 | FixedFullness = TheForest.Utils.LocalPlayer.Stats.Fullness; 207 | } 208 | else 209 | { 210 | FixedFullness = -1f; 211 | } 212 | cY += 30f; 213 | 214 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Stamina:", labelStyle); 215 | if (!FixStamina) 216 | TheForest.Utils.LocalPlayer.Stats.Stamina = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), TheForest.Utils.LocalPlayer.Stats.Stamina, 0f, 100f); 217 | else 218 | FixedStamina = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), FixedStamina, 0f, 100f); 219 | GUI.Label(new Rect(340f, cY, 40f, 20f), (Mathf.RoundToInt(TheForest.Utils.LocalPlayer.Stats.Stamina * 10) / 10f) + ""); 220 | FixStamina = GUI.Toggle(new Rect(370f, cY, 20f, 20f), FixStamina, ""); 221 | if (FixStamina) 222 | { 223 | if (FixedStamina == -1f) 224 | FixedStamina = TheForest.Utils.LocalPlayer.Stats.Stamina; 225 | } 226 | else 227 | { 228 | FixedStamina = -1f; 229 | } 230 | cY += 30f; 231 | 232 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Energy:", labelStyle); 233 | if (!FixEnergy) 234 | TheForest.Utils.LocalPlayer.Stats.Energy = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), TheForest.Utils.LocalPlayer.Stats.Energy, 0f, 100f); 235 | else 236 | FixedEnergy = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), FixedEnergy, 0f, 100f); 237 | GUI.Label(new Rect(340f, cY, 40f, 20f), (Mathf.RoundToInt(TheForest.Utils.LocalPlayer.Stats.Energy * 10) / 10f) + ""); 238 | FixEnergy = GUI.Toggle(new Rect(370f, cY, 20f, 20f), FixEnergy, ""); 239 | if (FixEnergy) 240 | { 241 | if (FixedEnergy == -1f) 242 | FixedEnergy = TheForest.Utils.LocalPlayer.Stats.Energy; 243 | } 244 | else 245 | { 246 | FixedEnergy = -1f; 247 | } 248 | cY += 30f; 249 | 250 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Thirst:", labelStyle); 251 | if (!FixThirst) 252 | TheForest.Utils.LocalPlayer.Stats.Thirst = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), TheForest.Utils.LocalPlayer.Stats.Thirst, 0f, 1f); 253 | else 254 | FixedThirst = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), FixedThirst, 0f, 1f); 255 | GUI.Label(new Rect(340f, cY, 40f, 20f), (Mathf.RoundToInt(TheForest.Utils.LocalPlayer.Stats.Thirst * 10) / 10f) + ""); 256 | FixThirst = GUI.Toggle(new Rect(370f, cY, 20f, 20f), FixThirst, ""); 257 | if (FixThirst) 258 | { 259 | if (FixedThirst == -1f) 260 | FixedThirst = TheForest.Utils.LocalPlayer.Stats.Thirst; 261 | } 262 | else 263 | { 264 | FixedThirst = -1f; 265 | } 266 | cY += 30f; 267 | 268 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Starvation:", labelStyle); 269 | if (!FixStarvation) 270 | TheForest.Utils.LocalPlayer.Stats.Starvation = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), TheForest.Utils.LocalPlayer.Stats.Starvation, 0f, 1f); 271 | else 272 | FixedStarvation = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), FixedStarvation, 0f, 1f); 273 | GUI.Label(new Rect(340f, cY, 40f, 20f), (Mathf.RoundToInt(TheForest.Utils.LocalPlayer.Stats.Starvation * 10) / 10f) + ""); 274 | FixStarvation = GUI.Toggle(new Rect(370f, cY, 20f, 20f), FixStarvation, ""); 275 | if (FixStarvation) 276 | { 277 | if (FixedStarvation == -1f) 278 | FixedStarvation = TheForest.Utils.LocalPlayer.Stats.Starvation; 279 | } 280 | else 281 | { 282 | FixedStarvation = -1f; 283 | } 284 | cY += 30f; 285 | 286 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Body Temp:", labelStyle); 287 | if (!FixBodyTemp) 288 | TheForest.Utils.LocalPlayer.Stats.BodyTemp = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), TheForest.Utils.LocalPlayer.Stats.BodyTemp, 10f, 60f); 289 | else 290 | FixedBodyTemp = GUI.HorizontalSlider(new Rect(170f, cY + 3f, 160f, 30f), FixedBodyTemp, 10f, 60f); 291 | GUI.Label(new Rect(340f, cY, 40f, 20f), (Mathf.RoundToInt(TheForest.Utils.LocalPlayer.Stats.BodyTemp * 10) / 10f) + ""); 292 | FixBodyTemp = GUI.Toggle(new Rect(370f, cY, 20f, 20f), FixBodyTemp, ""); 293 | if (FixBodyTemp) 294 | { 295 | if (FixedBodyTemp == -1f) 296 | FixedBodyTemp = TheForest.Utils.LocalPlayer.Stats.BodyTemp; 297 | } 298 | else 299 | { 300 | FixedBodyTemp = -1f; 301 | } 302 | cY += 30f; 303 | 304 | } 305 | 306 | if (Tab == 3) 307 | { 308 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Free cam:", labelStyle); 309 | FreeCam = GUI.Toggle(new Rect(170f, cY, 20f, 30f), FreeCam, ""); 310 | cY += 30f; 311 | 312 | GUI.Label(new Rect(20f, cY, 150f, 20f), "Freeze time:", labelStyle); 313 | FreezeTime = GUI.Toggle(new Rect(170f, cY, 20f, 30f), FreezeTime, ""); 314 | cY += 30f; 315 | GUI.matrix = bkpMatrix; 316 | } 317 | } 318 | } 319 | 320 | public static bool InstaKill = false; 321 | 322 | protected static bool FixHealth = false; 323 | protected static bool FixBatteryCharge = false; 324 | protected static bool FixFullness = false; 325 | protected static bool FixStamina = false; 326 | protected static bool FixEnergy = false; 327 | protected static bool FixThirst = false; 328 | protected static bool FixStarvation = false; 329 | protected static bool FixBodyTemp = false; 330 | 331 | protected static float FixedHealth = -1f; 332 | protected static float FixedBatteryCharge = -1f; 333 | protected static float FixedFullness = -1f; 334 | protected static float FixedStamina = -1f; 335 | protected static float FixedEnergy = -1f; 336 | protected static float FixedThirst = -1f; 337 | protected static float FixedStarvation = -1f; 338 | protected static float FixedBodyTemp = -1f; 339 | 340 | public static bool FreeCam = false; 341 | public static bool FreezeTime = false; 342 | 343 | protected GameObject Sphere; 344 | void Start() 345 | { 346 | GameObject go = GameObject.CreatePrimitive(PrimitiveType.Sphere); 347 | MeshFilter mf = go.GetComponent(); 348 | Mesh mesh = mf.sharedMesh; 349 | 350 | GameObject goNew = new GameObject(); 351 | goNew.name = "Inverted Sphere"; 352 | MeshFilter mfNew = goNew.AddComponent(); 353 | mfNew.sharedMesh = new Mesh(); 354 | 355 | //Scale the vertices; 356 | Vector3[] vertices = mesh.vertices; 357 | for (int i = 0; i < vertices.Length; i++) 358 | vertices[i] = vertices[i]; 359 | mfNew.sharedMesh.vertices = vertices; 360 | 361 | // Reverse the triangles 362 | int[] triangles = mesh.triangles; 363 | for (int i = 0; i < triangles.Length; i += 3) 364 | { 365 | int t = triangles[i]; 366 | triangles[i] = triangles[i + 2]; 367 | triangles[i + 2] = t; 368 | } 369 | mfNew.sharedMesh.triangles = triangles; 370 | 371 | // Reverse the normals; 372 | Vector3[] normals = mesh.normals; 373 | for (int i = 0; i < normals.Length; i++) 374 | normals[i] = -normals[i]; 375 | mfNew.sharedMesh.normals = normals; 376 | 377 | 378 | mfNew.sharedMesh.uv = mesh.uv; 379 | mfNew.sharedMesh.uv2 = mesh.uv2; 380 | mfNew.sharedMesh.RecalculateBounds(); 381 | 382 | 383 | DestroyImmediate(go); 384 | 385 | this.Sphere = goNew; 386 | this.Sphere.AddComponent(); 387 | Sphere.GetComponent().material = new Material(Shader.Find("Legacy Shaders/Transparent/Diffuse")); 388 | Sphere.GetComponent().material.SetColor("_Color", new Color(1f, 0f, 0f, 0.9f)); 389 | Sphere.GetComponent().enabled = false; 390 | Sphere.GetComponent().enabled = false; 391 | } 392 | 393 | protected float massTreeRadius = 10f; 394 | protected bool DestroyTree = false; 395 | protected bool LastFreezeTime = false; 396 | protected bool LastFreeCam = false; 397 | protected float rotationY = 0f; 398 | 399 | private void Update() 400 | { 401 | if (FreezeTime && !LastFreezeTime) 402 | { 403 | UnityEngine.Time.timeScale = 0f; 404 | LastFreezeTime = true; 405 | } 406 | if (!FreezeTime && LastFreezeTime) 407 | { 408 | UnityEngine.Time.timeScale = 1f; 409 | LastFreezeTime = false; 410 | } 411 | 412 | if (FreeCam && !LastFreeCam) 413 | { 414 | TheForest.Utils.LocalPlayer.CamFollowHead.enabled = false; 415 | TheForest.Utils.LocalPlayer.CamRotator.enabled = false; 416 | TheForest.Utils.LocalPlayer.MainRotator.enabled = false; 417 | TheForest.Utils.LocalPlayer.FpCharacter.enabled = false; 418 | LastFreeCam = true; 419 | } 420 | if (!FreeCam && LastFreeCam) 421 | { 422 | TheForest.Utils.LocalPlayer.CamFollowHead.enabled = true; 423 | TheForest.Utils.LocalPlayer.CamRotator.enabled = true; 424 | TheForest.Utils.LocalPlayer.MainRotator.enabled = true; 425 | TheForest.Utils.LocalPlayer.FpCharacter.enabled = true; 426 | LastFreeCam = false; 427 | } 428 | 429 | if (FreeCam) 430 | { 431 | bool button1 = TheForest.Utils.Input.GetButton("Crouch"); 432 | bool button2 = TheForest.Utils.Input.GetButton("Run"); 433 | bool button3 = TheForest.Utils.Input.GetButton("Jump"); 434 | float multiplier = 0.1f; 435 | if (button2) multiplier = 2f; 436 | 437 | Vector3 vector3 = Camera.main.transform.rotation * ( 438 | new Vector3(TheForest.Utils.Input.GetAxis("Horizontal"), 439 | 0f, 440 | TheForest.Utils.Input.GetAxis("Vertical") 441 | ) * multiplier); 442 | if (button3) vector3.y += multiplier; 443 | if (button1) vector3.y -= multiplier; 444 | Camera.main.transform.position += vector3; 445 | 446 | float rotationX = Camera.main.transform.localEulerAngles.y + TheForest.Utils.Input.GetAxis("Mouse X") * 15f; 447 | rotationY += TheForest.Utils.Input.GetAxis("Mouse Y") * 15f; 448 | rotationY = Mathf.Clamp(rotationY, -80f, 80f); 449 | Camera.main.transform.localEulerAngles = new Vector3(-rotationY, rotationX, 0); 450 | } 451 | 452 | if (ModAPI.Input.GetButtonDown("FreezeTime")) 453 | { 454 | FreezeTime = !FreezeTime; 455 | } 456 | 457 | if (ModAPI.Input.GetButtonDown("FreeCam")) 458 | { 459 | FreeCam = !FreeCam; 460 | } 461 | if (ModAPI.Input.GetButton("MassTree")) 462 | { 463 | if (Input.mouseScrollDelta != Vector2.zero) 464 | { 465 | massTreeRadius = Mathf.Clamp(massTreeRadius + Input.mouseScrollDelta.y, 20f, 100f); 466 | } 467 | Sphere.GetComponent().enabled = true; 468 | Sphere.transform.position = TheForest.Utils.LocalPlayer.Transform.position; 469 | Sphere.transform.localScale = new Vector3(massTreeRadius * 2f, massTreeRadius * 2f, massTreeRadius * 2f); 470 | DestroyTree = true; 471 | } 472 | else 473 | { 474 | if (DestroyTree) 475 | { 476 | RaycastHit[] hits = Physics.SphereCastAll(Sphere.transform.position, massTreeRadius, new Vector3(1f, 0f, 0f)); 477 | foreach (RaycastHit hit in hits) 478 | { 479 | TreeHealth h = hit.collider.GetComponent(); 480 | if (h != null) 481 | { 482 | hit.collider.gameObject.SendMessage("Explosion", 100f); 483 | } 484 | } 485 | DestroyTree = false; 486 | } 487 | Sphere.GetComponent().enabled = false; 488 | } 489 | if (FixBodyTemp) 490 | TheForest.Utils.LocalPlayer.Stats.BodyTemp = FixedBodyTemp; 491 | if (FixBatteryCharge) 492 | TheForest.Utils.LocalPlayer.Stats.BatteryCharge = FixedBatteryCharge; 493 | if (FixEnergy) 494 | TheForest.Utils.LocalPlayer.Stats.Energy = FixedEnergy; 495 | if (FixHealth) 496 | TheForest.Utils.LocalPlayer.Stats.Health = FixedHealth; 497 | if (FixStamina) 498 | TheForest.Utils.LocalPlayer.Stats.Stamina = FixedStamina; 499 | if (FixFullness) 500 | TheForest.Utils.LocalPlayer.Stats.Fullness = FixedFullness; 501 | if (FixStarvation) 502 | TheForest.Utils.LocalPlayer.Stats.Starvation = FixedStarvation; 503 | if (FixThirst) 504 | TheForest.Utils.LocalPlayer.Stats.Thirst = FixedThirst; 505 | if (ModAPI.Input.GetButtonDown("OpenMenu")) 506 | //if (ModAPI.Input.GetButtonDown("Open")) 507 | { 508 | if (this.visible) 509 | { 510 | TheForest.Utils.LocalPlayer.FpCharacter.UnLockView(); 511 | //Screen.lockCursor = false; 512 | } 513 | else 514 | { 515 | TheForest.Utils.LocalPlayer.FpCharacter.LockView(); 516 | } 517 | this.visible = !this.visible; 518 | } 519 | 520 | } 521 | } 522 | } -------------------------------------------------------------------------------- /CheatMenu/FPController.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace CheatMenu 8 | { 9 | class FPController : FirstPersonCharacter 10 | { 11 | protected float baseWalkSpeed; 12 | protected float baseRunSpeed; 13 | protected float baseJumpHeight; 14 | protected float baseCrouchSpeed; 15 | protected float baseStrafeSpeed; 16 | protected float baseSwimmingSpeed; 17 | protected float baseGravity; 18 | protected float baseMaxVelocityChange; 19 | protected float baseMaximumVelocity; 20 | protected float baseMaxSwimVelocity; 21 | 22 | 23 | protected void BaseValues() 24 | { 25 | this.baseMaxSwimVelocity = this.maxSwimVelocity; 26 | this.baseWalkSpeed = this.walkSpeed; 27 | this.baseRunSpeed = this.runSpeed; 28 | this.baseJumpHeight = this.jumpHeight; 29 | this.baseCrouchSpeed = this.crouchSpeed; 30 | this.baseStrafeSpeed = this.strafeSpeed; 31 | this.baseSwimmingSpeed = this.swimmingSpeed; 32 | this.baseMaxVelocityChange = maxVelocityChange; 33 | this.baseMaximumVelocity = maximumVelocity; 34 | this.baseGravity = this.gravity; 35 | } 36 | 37 | protected Collider[] AllChildColliders; 38 | protected Collider[] AllColliders; 39 | 40 | protected override void Start() 41 | { 42 | this.AllChildColliders = gameObject.GetComponentsInChildren(); 43 | this.AllColliders = gameObject.GetComponents(); 44 | base.Start(); 45 | BaseValues(); 46 | } 47 | 48 | protected bool LastNoClip = false; 49 | protected bool LastFlyMode = false; 50 | 51 | protected override void FixedUpdate() 52 | { 53 | this.walkSpeed = baseWalkSpeed * CheatMenuComponent.SpeedMultiplier; 54 | this.runSpeed = baseRunSpeed * CheatMenuComponent.SpeedMultiplier; 55 | this.jumpHeight = baseJumpHeight * CheatMenuComponent.JumpMultiplier; 56 | this.crouchSpeed = baseCrouchSpeed * CheatMenuComponent.SpeedMultiplier; 57 | this.strafeSpeed = baseStrafeSpeed * CheatMenuComponent.SpeedMultiplier; 58 | this.swimmingSpeed = baseSwimmingSpeed * CheatMenuComponent.SpeedMultiplier; 59 | this.maxSwimVelocity = baseMaxSwimVelocity * CheatMenuComponent.SpeedMultiplier; 60 | 61 | if (!CheatMenuComponent.FreeCam) 62 | { 63 | if (CheatMenuComponent.FlyMode && !PushingSled) 64 | { 65 | this.rb.useGravity = false; 66 | if (CheatMenuComponent.NoClip) 67 | { 68 | if (!LastNoClip) 69 | { 70 | for (int i = 0; i < AllColliders.Length; i++) 71 | AllColliders[i].enabled = false; 72 | for (int i = 0; i < AllChildColliders.Length; i++) 73 | AllChildColliders[i].enabled = false; 74 | LastNoClip = true; 75 | } 76 | } 77 | else 78 | { 79 | if (LastNoClip) 80 | { 81 | for (int i = 0; i < AllColliders.Length; i++) 82 | AllColliders[i].enabled = true; 83 | for (int i = 0; i < AllChildColliders.Length; i++) 84 | AllChildColliders[i].enabled = true; 85 | LastNoClip = false; 86 | } 87 | } 88 | 89 | bool button1 = TheForest.Utils.Input.GetButton("Crouch"); 90 | bool button2 = TheForest.Utils.Input.GetButton("Run"); 91 | bool button3 = TheForest.Utils.Input.GetButton("Jump"); 92 | float multiplier = baseWalkSpeed; 93 | this.gravity = 0f; 94 | if (button2) multiplier = baseRunSpeed; 95 | 96 | Vector3 vector3 = Camera.main.transform.rotation * ( 97 | new Vector3(TheForest.Utils.Input.GetAxis("Horizontal"), 98 | 0f, 99 | TheForest.Utils.Input.GetAxis("Vertical") 100 | ) * multiplier * CheatMenuComponent.SpeedMultiplier); 101 | Vector3 velocity = this.rb.velocity; 102 | if (button3) velocity.y -= multiplier * CheatMenuComponent.SpeedMultiplier; 103 | if (button1) velocity.y += multiplier * CheatMenuComponent.SpeedMultiplier; 104 | Vector3 force = vector3 - velocity; 105 | this.rb.AddForce(force, ForceMode.VelocityChange); 106 | LastFlyMode = true; 107 | } 108 | else 109 | { 110 | if (LastFlyMode) 111 | { 112 | if (!this.IsInWater()) 113 | this.rb.useGravity = true; 114 | this.gravity = baseGravity; 115 | if (LastNoClip) 116 | { 117 | for (int i = 0; i < AllColliders.Length; i++) 118 | AllColliders[i].enabled = true; 119 | for (int i = 0; i < AllChildColliders.Length; i++) 120 | AllChildColliders[i].enabled = true; 121 | LastNoClip = false; 122 | } 123 | LastFlyMode = false; 124 | } 125 | base.FixedUpdate(); 126 | } 127 | } 128 | } 129 | } 130 | } -------------------------------------------------------------------------------- /CheatMenu/Mod/CheatMenu.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FluffyFishGames/ModAPI-The-Forest-Mods/2e4235dbc164ba124fc9b397185d51fa2976e2f8/CheatMenu/Mod/CheatMenu.dll -------------------------------------------------------------------------------- /CheatMenu/Mod/CheatMenu.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FluffyFishGames/ModAPI-The-Forest-Mods/2e4235dbc164ba124fc9b397185d51fa2976e2f8/CheatMenu/Mod/CheatMenu.pdb -------------------------------------------------------------------------------- /CheatMenu/ModInfo.xml: -------------------------------------------------------------------------------- 1 | 2 | 0.28c 3 | 4 | 5 | Open cheat menu 6 | Cheatmenü öffnen 7 | 8 | 9 | Key to open the cheat menu which makes it possible to change the activation state of god mode, fly mode and so on. 10 | Die Taste mit der das Cheatmenü geöffnet wird. 11 | 12 | 13 | 14 | 15 | Instant built 16 | Sofortbau 17 | 18 | 19 | Press this key to instant build a blueprint. 20 | Betätige diese Taste um ein Gebäude sofort abzuschließen. 21 | 22 | 23 | 24 | 25 | Mass cut trees 26 | Massen Baumfällen 27 | 28 | 29 | When pressed shows a radius of trees which will be cut when the key is released. 30 | Wenn gedrückt, zeigt einen Radius an, indem Bäume gefällt werden. Wenn losgelassen, werden diese Bäume gefällt. 31 | 32 | 33 | 34 | 35 | Freeze Time 36 | Zeit einfrieren 37 | 38 | 39 | Freezes the time. 40 | Friert die Zeit ein 41 | 42 | 43 | 44 | 45 | Free Cam 46 | Free Cam 47 | 48 | 49 | Makes the cam fly free. 50 | Lässt die Kamera frei fliegen. 51 | 52 | 53 | 54 | Cheatmenu 55 | Cheatmenü 56 | 57 | 58 | This mod grants you superpowers and some other nice features like instant build or instant tree cutting. 59 | Dieser Mod verleiht dir Superkräfte und einige weitere nützliche Möglichkeiten wie Sofortbau oder schnelles Bäume fällen. 60 | 61 | 0.1.4 62 | -------------------------------------------------------------------------------- /CheatMenu/NewEnemyHealth.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace CheatMenu 7 | { 8 | class NewEnemyHealth : EnemyHealth 9 | { 10 | protected override void Hit(int damage) 11 | { 12 | if (CheatMenuComponent.InstaKill) 13 | base.Hit(damage * 1000000); 14 | else 15 | base.Hit(damage); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /CheatMenu/NewWeatherSystem.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace CheatMenu 7 | { 8 | public class NewWeatherSystem : TheForest.World.WeatherSystem 9 | { 10 | protected float ResetCloudTime = 0f; 11 | 12 | protected override void TryRain() 13 | { 14 | if (CheatMenuComponent.FreezeWeather) 15 | { 16 | return; 17 | } 18 | base.TryRain(); 19 | } 20 | 21 | protected override void Update() 22 | { 23 | if (ResetCloudTime > 0f) 24 | { 25 | ResetCloudTime -= UnityEngine.Time.deltaTime; 26 | if (ResetCloudTime <= 0f) 27 | { 28 | CloudSmoothTime = 20f; 29 | } 30 | } 31 | if (CheatMenuComponent.ForceWeather >= 0) 32 | { 33 | TheForest.Utils.Scene.RainFollowGO.SetActive(false); 34 | TheForest.Utils.Scene.RainTypes.RainHeavy.SetActive(false); 35 | TheForest.Utils.Scene.RainTypes.RainMedium.SetActive(false); 36 | TheForest.Utils.Scene.RainTypes.RainLight.SetActive(false); 37 | TheForest.Utils.Scene.Clock.AfterStorm.SetActive(false); 38 | if (CheatMenuComponent.ForceWeather == 0) 39 | { 40 | this.Raining = true; 41 | this.RainDice = 1; 42 | this.RainDiceStop = 2; 43 | this.TryRain(); 44 | CloudSmoothTime = 1f; 45 | ResetCloudTime = 2f; 46 | } 47 | if (CheatMenuComponent.ForceWeather == 1) 48 | { 49 | this.Raining = false; 50 | this.RainDice = 2; 51 | this.RainDiceStop = 1; 52 | this.TryRain(); 53 | CloudSmoothTime = 1f; 54 | ResetCloudTime = 2f; 55 | } 56 | if (CheatMenuComponent.ForceWeather == 2) 57 | { 58 | this.Raining = false; 59 | this.RainDice = 3; 60 | this.RainDiceStop = 1; 61 | this.TryRain(); 62 | CloudSmoothTime = 1f; 63 | ResetCloudTime = 2f; 64 | } 65 | if (CheatMenuComponent.ForceWeather == 3) 66 | { 67 | this.Raining = false; 68 | this.RainDice = 4; 69 | this.RainDiceStop = 1; 70 | this.TryRain(); 71 | CloudSmoothTime = 1f; 72 | ResetCloudTime = 2f; 73 | } 74 | if (CheatMenuComponent.ForceWeather == 4) 75 | { 76 | this.Raining = false; 77 | this.RainDice = 5; 78 | this.RainDiceStop = 1; 79 | this.TryRain(); 80 | CloudSmoothTime = 1f; 81 | ResetCloudTime = 2f; 82 | } 83 | CheatMenuComponent.ForceWeather = -1; 84 | } 85 | base.Update(); 86 | } 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /CheatMenu/Stats.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace CheatMenu 7 | { 8 | class Stats : PlayerStats 9 | { 10 | 11 | [ModAPI.Attributes.Priority(1000)] 12 | protected override void hitFallDown() 13 | { 14 | if (!CheatMenuComponent.GodMode) 15 | base.hitFallDown(); 16 | } 17 | 18 | [ModAPI.Attributes.Priority(1000)] 19 | protected override void HitFire() 20 | { 21 | if (!CheatMenuComponent.GodMode) 22 | base.HitFire(); 23 | } 24 | 25 | 26 | [ModAPI.Attributes.Priority(1000)] 27 | public override void hitFromEnemy(int getDamage) 28 | { 29 | if (!CheatMenuComponent.GodMode) 30 | base.hitFromEnemy(getDamage); 31 | } 32 | 33 | [ModAPI.Attributes.Priority(1000)] 34 | public override void HitShark(int damage) 35 | { 36 | if (!CheatMenuComponent.GodMode) 37 | base.HitShark(damage); 38 | } 39 | 40 | [ModAPI.Attributes.Priority(1000)] 41 | protected override void FallDownDead() 42 | { 43 | if (!CheatMenuComponent.GodMode) 44 | base.FallDownDead(); 45 | } 46 | 47 | [ModAPI.Attributes.Priority(1000)] 48 | protected override void Fell() 49 | { 50 | if (!CheatMenuComponent.GodMode) 51 | base.Fell(); 52 | } 53 | 54 | [ModAPI.Attributes.Priority(1000)] 55 | protected override void HitFromPlayMaker(int damage) 56 | { 57 | if (!CheatMenuComponent.GodMode) 58 | base.HitFromPlayMaker(damage); 59 | } 60 | 61 | protected override void Update() 62 | { 63 | if (CheatMenuComponent.GodMode) 64 | { 65 | this.IsBloody = false; 66 | this.FireWarmth = true; 67 | this.SunWarmth = true; 68 | this.IsCold = false; 69 | this.Health = 100f; 70 | this.Armor = 400; 71 | this.Fullness = 1f; 72 | this.Stamina = 100f; 73 | this.Energy = 100f; 74 | this.Hunger = 0; 75 | this.Thirst = 0; 76 | this.Starvation = 0; 77 | } 78 | base.Update(); 79 | } 80 | 81 | protected override void KillPlayer() 82 | { 83 | if (!CheatMenuComponent.GodMode) 84 | base.KillPlayer(); 85 | } 86 | 87 | public override void HitFood() 88 | { 89 | if (!CheatMenuComponent.GodMode) 90 | base.HitFood(); 91 | } 92 | 93 | public override void HitFoodDelayed(int damage) 94 | { 95 | if (!CheatMenuComponent.GodMode) 96 | base.HitFoodDelayed(damage); 97 | } 98 | } 99 | } -------------------------------------------------------------------------------- /CheatMenu/THealth.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using UnityEngine; 6 | 7 | namespace CheatMenu 8 | { 9 | class THealth : TreeHealth 10 | { 11 | protected override void Hit() 12 | { 13 | if (CheatMenuComponent.InstantTree) 14 | { 15 | this.Explosion(100f); 16 | } 17 | else 18 | { 19 | base.Hit(); 20 | } 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /CheatMenu/entryAdd.tpl: -------------------------------------------------------------------------------- 1 | {include file='documentHeader'} 2 | 3 | 4 | {lang}wsif.entry.{@$action}{/lang} - {$category->title|language} - {PAGE_TITLE|language} 5 | 6 | {include file='headInclude'} 7 | 8 | 30 | 31 | 32 | 33 | {include file='header'} 34 | 35 | 36 | {lang}wsif.entry.{@$action}{/lang} 37 | 38 | 39 | {include file='userNotice'} 40 | 41 | {if !$category->getPermission('user.canAddEntryWithoutModeration')} 42 | {lang}wsif.entry.moderation.info{/lang} 43 | {/if} 44 | 45 | {include file='formError'} 46 | 47 | 48 | 49 | {if $action == 'edit' && $entry->canDelete() && !$entry->isDeleted} 50 | 51 | {lang}wsif.entry.delete{/lang} 52 | 53 | 54 | 55 | {lang}wsif.entry.delete.sure{/lang} 56 | 57 | 58 | 59 | {lang}wsif.entry.deleteReason{/lang} 60 | 61 | {$deleteReason} 62 | {if $errorField == 'deleteReason'} 63 | 64 | {if $errorType == 'censoredWordsFound'} 65 | {lang}wcf.message.error.censoredWordsFound{/lang} 66 | {else} 67 | {lang}wsif.entry.deleteReason.error.{@$errorType}{/lang} 68 | {/if} 69 | 70 | {/if} 71 | 72 | 73 | 74 | 75 | 88 | {/if} 89 | 90 | 91 | {lang}wsif.entry.information{/lang} 92 | 93 | {if !$__wcf->user->userID} 94 | 95 | {lang}wcf.user.username{/lang} 96 | 97 | 98 | {if $errorField == 'username'} 99 | 100 | {if $errorType == 'empty'} 101 | {lang}wcf.global.form.error.empty{/lang} 102 | {else} 103 | {lang}wcf.user.username.error.{@$errorType}{/lang} 104 | {/if} 105 | 106 | {/if} 107 | 108 | 109 | {/if} 110 | 111 | {include file='messageFormMultilingualism'} 112 | 113 | {if $labelGroups|count} 114 | {hascontent} 115 | 116 | {lang}wcf.label.label{/lang} 117 | 118 | 119 | {content} 120 | {foreach from=$labelGroups item=labelGroup} 121 | {if $labelGroup|count} 122 | 123 | {lang}wcf.label.none{/lang} 124 | 125 | 126 | {foreach from=$labelGroup item=label} 127 | {lang}{$label->label}{/lang} 128 | {/foreach} 129 | 130 | 131 | 132 | {/if} 133 | {/foreach} 134 | {/content} 135 | 136 | {if $errorField == 'labelIDs'} 137 | {lang}wcf.label.error.notValid{/lang} 138 | {/if} 139 | 140 | 141 | {/hascontent} 142 | {/if} 143 | 144 | 145 | {lang}wsif.entry.subject{/lang} 146 | 147 | 148 | {if $errorField == 'subject'} 149 | 150 | {if $errorType == 'empty'} 151 | {lang}wcf.global.form.error.empty{/lang} 152 | {elseif $errorType == 'censoredWordsFound'} 153 | {lang}wcf.message.error.censoredWordsFound{/lang} 154 | {else} 155 | {lang}wsif.entry.subject.error.{@$errorType}{/lang} 156 | {/if} 157 | 158 | {/if} 159 | 160 | 161 | 162 | 163 | {lang}wsif.entry.teaser{/lang} 164 | 165 | {$teaser} 166 | {lang}wsif.entry.teaser.description{/lang} 167 | {if $errorField == 'teaser'} 168 | 169 | {if $errorType == 'empty'} 170 | {lang}wcf.global.form.error.empty{/lang} 171 | {else} 172 | {lang}wsif.entry.teaser.error.{@$errorType}{/lang} 173 | {/if} 174 | 175 | {/if} 176 | 177 | 178 | 179 | {if MODULE_TAGGING && WSIF_ENTRY_ENABLE_TAGS && $category->getPermission('user.canSetTags')}{include file='tagInput'}{/if} 180 | 181 | {if ($action == 'add' || $entry->isDisabled) && $category->getPermission('mod.canEnableEntry')} 182 | {if $action == 'add'} 183 | 184 | 185 | 186 | {lang}wsif.entry.disableEntry{/lang} 187 | 188 | 189 | {/if} 190 | 191 | 192 | {lang}wsif.entry.publishingTime{/lang} 193 | 194 | 195 | {if $errorField == 'publishingTime'} 196 | 197 | {if $errorType == 'empty'} 198 | {lang}wcf.global.form.error.empty{/lang} 199 | {else} 200 | {lang}wsif.entry.publishingTime.error.{@$errorType}{/lang} 201 | {/if} 202 | 203 | {/if} 204 | {lang}wsif.entry.publishingTime.description{/lang} 205 | 206 | 207 | {/if} 208 | 209 | {event name='informationFields'} 210 | 211 | 212 | {hascontent} 213 | 214 | {lang}wsif.entry.additionalInformation{/lang} 215 | 216 | {content} 217 | {foreach from=$fields key='fieldID' item='field'} 218 | fieldID} class="formError"{/if}> 219 | {$field} 220 | 221 | required} required="required"{/if} maxlength="255" class="long" /> 222 | {if $errorField == 'field' && $errorType.fieldID == $field->fieldID} 223 | 224 | {if $errorType.errorType == 'empty'} 225 | {lang}wcf.global.form.error.empty{/lang} 226 | {else} 227 | {lang}wsif.entry.field.error.{@$errorType.errorType}{/lang} 228 | {/if} 229 | 230 | {/if} 231 | 232 | 233 | {/foreach} 234 | 235 | {event name='additionalInformationFields'} 236 | {/content} 237 | 238 | {/hascontent} 239 | 240 | 241 | {lang}wsif.entry.contents{/lang} 242 | 243 | 244 | 245 | 246 | {lang}wsif.entry.files{/lang} 247 | {lang}wsif.entry.images{/lang} 248 | {event name='tabMenuTabs'} 249 | 250 | 251 | 252 | {include file='entryAddFiles' application='wsif'} 253 | {include file='entryAddImages' application='wsif'} 254 | 255 | {event name='tabMenuContents'} 256 | 257 | 258 | 259 | 266 | 267 | {include file='captcha'} 268 | 269 | 270 | {lang}wsif.entry.message{/lang} 271 | 272 | 273 | {lang}wsif.entry.message{/lang} 274 | 275 | {$text} 276 | {if $errorField == 'text'} 277 | 278 | {if $errorType == 'empty'} 279 | {lang}wcf.global.form.error.empty{/lang} 280 | {elseif $errorType == 'tooLong'} 281 | {lang}wcf.message.error.tooLong{/lang} 282 | {elseif $errorType == 'censoredWordsFound'} 283 | {lang}wcf.message.error.censoredWordsFound{/lang} 284 | {elseif $errorType == 'disallowedBBCodes'} 285 | {lang}wcf.message.error.disallowedBBCodes{/lang} 286 | {else} 287 | {lang}wsif.entry.message.error.{@$errorType}{/lang} 288 | {/if} 289 | 290 | {/if} 291 | 292 | 293 | 294 | {event name='messageFields'} 295 | 296 | 297 | {include file='messageFormTabs' wysiwygContainerID='text'} 298 | 299 | {event name='fieldsets'} 300 | 301 | 302 | 303 | 304 | 305 | {include file='messageFormPreviewButton'} 306 | {@SECURITY_TOKEN_INPUT_TAG} 307 | 308 | 309 | 310 | {include file='footer'} 311 | {include file='wysiwyg'} 312 | 313 | 314 |
{lang}wsif.entry.moderation.info{/lang}