private void OnGUI() { /*if ((Event.current.type != EventType.Repaint) && * (Event.current.type != EventType.Layout) && * (Event.current.type != EventType.)) * return;*/ GUI.color = Color.cyan; if (HackSettings.GetState("GUI_Show")) { HackSettings.SetRect("GUI_MainWindow", GUI.Window(0, HackSettings.GetRect("GUI_MainWindow"), GuiMenu.MenuWindow, "~AA~")); } if ((HackSettings.GetFloat("ESP_LastUpdate") <= HackSettings.GetFloat("ESP_NextUpdate")) && HackSettings.GetState("ESP_Draw")) { if (HackSettings.GetState("ESP_Player_Draw")) { DrawPlayers(); } if (HackSettings.GetState("ESP_Item_Draw")) { DrawPickups(); } if (HackSettings.GetState("ESP_Vehicle_Draw")) { DrawVehicles(); } HackSettings.SetFloat("ESP_LastUpdate", Time.time); } }
//Doesn't work, just tazes the player constantly, also he doesn't drops his weapon :/ public static void DropThatWeaponArea() { foreach (Player player in PlayerManager.Players) { if (PlayerManager.DistanceTo(player) < HackSettings.GetFloat("HACK_NoGunArea_Distance")) { GunManager.TazePlayer(player, false, 100f); GunManager.TazePlayer(player, false, -100f); } } }
private void DrawPickups() { foreach (Pickup pickup in ItemManager.Pickups) { if (!ItemManager.IsValidPickup(pickup)) { continue; } float distance = Mathf.Floor(PlayerManager.DistanceTo(pickup.transform)); if (distance > HackSettings.GetFloat("ESP_Item_Distance")) { continue; } var W2S = Camera.main.WorldToScreenPoint(pickup.transform.position); if (W2S.z < 0.01f) { continue; } Color drawColor = ItemManager.GetItemTypeColor(pickup.weaponType); var drawText = $"{pickup.itemName}"; var drawSize = GUI.skin.GetStyle(drawText).CalcSize(new GUIContent(drawText)); float customESPHeight = 5 / distance * 34; W2S += new Vector3(customESPHeight - customESPHeight * 1.35f, customESPHeight, 0); if (HackSettings.GetState("ESP_Item_Draw_Name")) { GuIDraw.DrawShadow(new Rect(W2S.x - drawSize.x / 2, (float)Screen.height - W2S.y, drawSize.x, drawSize.y), new GUIContent(drawText), GUI.skin.GetStyle(""), drawColor, Color.black, Vector2.zero); } /* * ToDo: Fix 2DBox size */ if (HackSettings.GetState("ESP_Item_Draw_2DBox")) { GuIDraw.Draw2DBox(W2S.x, Screen.height - W2S.y, 20, 20, drawColor); } //GuIDraw.Draw3DBox(pickup.gameObject, drawColor); //Works and doesn't work at the same time bool shouldIGlow = HackSettings.GetState("ESP_Item_Draw_Glow"); pickup.gameObject.MakeMeGlow(drawColor, shouldIGlow); } }
public static void MainMenu_Index1() { GUILayout.BeginVertical(); GUILayout.Label("Menu 1 - ESP Settings"); HackSettings.SetState("ESP_Draw", GUILayout.Toggle(HackSettings.GetState("ESP_Draw"), "Enable ESP")); GUILayout.Label("Player Settings"); HackSettings.SetState("ESP_Player_Draw", GUILayout.Toggle(HackSettings.GetState("ESP_Player_Draw"), "(F2) Draw Players")); GUILayout.BeginHorizontal(); GUILayout.Label($"Draw Distance({HackSettings.GetFloat("ESP_Player_Distance")}):"); HackSettings.SetFloat("ESP_Player_Distance", Mathf.Floor(GUILayout.HorizontalSlider(HackSettings.GetFloat("ESP_Player_Distance"), 100, 2000))); GUILayout.EndHorizontal(); HackSettings.SetState("ESP_Player_Draw_Distance", GUILayout.Toggle(HackSettings.GetState("ESP_Player_Draw_Distance"), "Draw Distance")); HackSettings.SetState("ESP_Player_Draw_Health", GUILayout.Toggle(HackSettings.GetState("ESP_Player_Draw_Health"), "Draw Health")); HackSettings.SetState("ESP_Player_Draw_Name", GUILayout.Toggle(HackSettings.GetState("ESP_Player_Draw_Name"), "Draw Name")); HackSettings.SetState("ESP_Player_Draw_Glow", GUILayout.Toggle(HackSettings.GetState("ESP_Player_Draw_Glow"), "Draw Glow")); HackSettings.SetState("ESP_Player_Draw_2DBox", GUILayout.Toggle(HackSettings.GetState("ESP_Player_Draw_2DBox"), "Draw 2DBox")); HackSettings.SetState("ESP_Player_Draw_HeadX", GUILayout.Toggle(HackSettings.GetState("ESP_Player_Draw_HeadX"), "Draw Head Marker")); HackSettings.SetState("ESP_Player_Draw_Nearest", GUILayout.Toggle(HackSettings.GetState("ESP_Player_Draw_Nearest"), "Draw Nearest Player")); HackSettings.SetState("ESP_Player_Draw_Skeleton", GUILayout.Toggle(HackSettings.GetState("ESP_Player_Draw_Skeleton"), "Draw Skeleton")); GUILayout.Label("Item Settings"); HackSettings.SetState("ESP_Item_Draw", GUILayout.Toggle(HackSettings.GetState("ESP_Item_Draw"), "(F5) Draw Items")); GUILayout.BeginHorizontal(); GUILayout.Label($"Draw Distance({HackSettings.GetFloat("ESP_Item_Distance")}):"); HackSettings.SetFloat("ESP_Item_Distance", Mathf.Floor(GUILayout.HorizontalSlider(HackSettings.GetFloat("ESP_Item_Distance"), 100, 2000))); GUILayout.EndHorizontal(); HackSettings.SetState("ESP_Item_Draw_Name", GUILayout.Toggle(HackSettings.GetState("ESP_Item_Draw_Name"), "Draw Name")); HackSettings.SetState("ESP_Item_Draw_2DBox", GUILayout.Toggle(HackSettings.GetState("ESP_Item_Draw_2DBox"), "Draw 2DBox")); HackSettings.SetState("ESP_Item_Draw_Glow", GUILayout.Toggle(HackSettings.GetState("ESP_Item_Draw_Glow"), "Draw Glow")); GUILayout.Label("Vehicle Settings"); HackSettings.SetState("ESP_Vehicle_Draw", GUILayout.Toggle(HackSettings.GetState("ESP_Vehicle_Draw"), "Draw Vehicles")); GUILayout.BeginHorizontal(); GUILayout.Label($"Draw Distance({HackSettings.GetFloat("ESP_Vehicle_Distance")}):"); HackSettings.SetFloat("ESP_Vehicle_Distance", Mathf.Floor(GUILayout.HorizontalSlider(HackSettings.GetFloat("ESP_Vehicle_Distance"), 100, 2000))); GUILayout.EndHorizontal(); HackSettings.SetState("ESP_Vehicle_Draw_Name", GUILayout.Toggle(HackSettings.GetState("ESP_Vehicle_Draw_Name"), "Draw Name")); HackSettings.SetState("ESP_Vehicle_Draw_Distance", GUILayout.Toggle(HackSettings.GetState("ESP_Vehicle_Draw_Distance"), "Draw Distance")); HackSettings.SetState("ESP_Vehicle_Draw_2DBox", GUILayout.Toggle(HackSettings.GetState("ESP_Vehicle_Draw_2DBox"), "Draw 2DBox")); HackSettings.SetState("ESP_Vehicle_Draw_Glow", GUILayout.Toggle(HackSettings.GetState("ESP_Vehicle_Draw_Glow"), "Draw Glow")); GUILayout.EndVertical(); }
public static Player GetNearestPlayer(bool ignoreTeam = true) { float lowestDistance = HackSettings.GetFloat("PM_NearestPlayer_Distance"); Player target = null; foreach (Player c_Player in Players) { if (!IsPlayerValid(c_Player, ignoreTeam)) { continue; } float distance = (float)Math.Floor(DistanceTo(c_Player)); if (distance <= lowestDistance) { lowestDistance = distance; target = c_Player; } } return(target); }
public static void MainMenu_Index0() { GUILayout.BeginVertical(); GUILayout.Label("Menu 0 - Hotkeys"); HackSettings.SetState("GUI_Show", GUILayout.Toggle(HackSettings.GetState("GUI_Show"), "(F1) Toggle Menu")); HackSettings.SetState("ESP_Player_Draw", GUILayout.Toggle(HackSettings.GetState("ESP_Player_Draw"), "(F2) Draw Players")); HackSettings.SetState("HACK_Gunhack", GUILayout.Toggle(HackSettings.GetState("HACK_Gunhack"), "(F4) Toggle Gunhack")); HackSettings.SetState("HACK_SpamHeal", GUILayout.Toggle(HackSettings.GetState("HACK_SpamHeal"), "(F6) Toggle DemiGod")); HackSettings.SetState("HACK_SendFakePosition", GUILayout.Toggle(HackSettings.GetState("HACK_SendFakePosition"), "(F9) Toggle SendFakePosition")); HackSettings.SetState("Aimbot_Silent", GUILayout.Toggle(HackSettings.GetState("Aimbot_Silent"), "Toggle Silent Aimbot")); HackSettings.SetState("HACK_NoGunArea", GUILayout.Toggle(HackSettings.GetState("HACK_NoGunArea"), "Toggle No Gun Area")); GUILayout.BeginHorizontal(); if (GUILayout.Button("Change name")) { NetworkManager.ChangeName(HackSettings.GetString("FakeName")); } HackSettings.SetString("FakeName", GUILayout.TextField(HackSettings.GetString("FakeName"))); GUILayout.EndHorizontal(); GUILayout.EndVertical(); }
private void DrawVehicles() { foreach (Car car in CarManager.Cars) { float distance = Mathf.Floor(PlayerManager.DistanceTo(car.transform)); if (distance > HackSettings.GetFloat("ESP_Vehicle_Distance")) { continue; } var W2S = Camera.main.WorldToScreenPoint(car.transform.position); if (W2S.z < 0.01f) { continue; } float customESPHeight = 25 / distance * 34; W2S += new Vector3(customESPHeight - customESPHeight * 1.35f, customESPHeight, 0); Color drawColor = Color.blue; var drawText = (HackSettings.GetState("ESP_Vehicle_Draw_Distance") ? $"({distance})" : "") + (HackSettings.GetState("ESP_Vehicle_Draw_Name") ? $"{car.name}" : ""); var drawSize = GUI.skin.GetStyle(drawText).CalcSize(new GUIContent(drawText)); if (HackSettings.GetState("ESP_Vehicle_Draw_Name")) { GuIDraw.DrawShadow(new Rect(W2S.x - drawSize.x / 2, (float)Screen.height - W2S.y, drawSize.x, drawSize.y), new GUIContent(drawText), GUI.skin.GetStyle(""), drawColor, Color.black, Vector2.zero); } /* * ToDo: Fix 2DBox size */ if (HackSettings.GetState("ESP_Vehicle_Draw_2DBox")) { GuIDraw.Draw2DBox(W2S.x - 70f, Screen.height - W2S.y, 50, 70, drawColor); } bool shouldIGlow = HackSettings.GetState("ESP_Vehicle_Draw_Glow"); car.gameObject.MakeMeGlow(drawColor, shouldIGlow); //GuIDraw.Draw3DBox(car.gameObject, drawColor); } }
public static bool IsPlayerValid(this Player refPlayer, bool teamInvalid = true, bool myselfInvalid = true) { if (!refPlayer) { return(false); } if (teamInvalid && IsTeammate(refPlayer)) { return(false); } if (myselfInvalid && refPlayer == GetLocalPlayer()) { return(false); } PlayerDeath playerDeath = refPlayer.m_playerDeath; if (!playerDeath) { return(false); } if (playerDeath.dead) { return(false); } if (HackSettings.GetState("PM_IgnoreDowned")) { if (playerDeath.isDown) { return(false); } } return(true); }
private void Update() { if (Time.time >= HackSettings.GetFloat("Collect_NextUpdate")) { PlayerManager.UpdatePlayerList(); ItemManager.UpdatePickupList(); CarManager.UpdateCarList(); HackSettings.SetFloat("Collect_NextUpdate", Time.time + HackSettings.GetFloat("Collect_UpdateInterval")); } if (Time.time >= HackSettings.GetFloat("ESP_NextUpdate")) { HackSettings.SetFloat("ESP_NextUpdate", Time.time + HackSettings.GetFloat("ESP_UpdateInterval")); } //Unload Method, ToDo: Remove Assembly when unloading if (Input.GetKeyDown(KeyCode.Delete)) { this.Unload(); } //Only allow input when we are not using the chat if (!TABGChat.inChat) { if (Input.GetKeyDown(HackSettings.GetKey("KEY_GUI_Menu_Toggle"))) { HackSettings.Toggle("GUI_Show"); } if (Input.GetKeyDown(KeyCode.F2)) { HackSettings.Toggle("ESP_Player_Draw"); } if (Input.GetKeyDown(KeyCode.F4)) { HackSettings.Toggle("HACK_Gunhack"); } if (Input.GetKeyDown(KeyCode.F5)) { HackSettings.Toggle("ESP_Item_Draw"); } if (Input.GetKeyDown(KeyCode.F6)) { HackSettings.Toggle("HACK_SpamHeal"); } //Teleport behind nearest Player if (Input.GetKey(KeyCode.Mouse4)) { var target = PlayerManager.NearestPlayer; if (target) { Vector3 aimPos = Camera.main.transform.position; aimPos = target.m_hip.transform.position - (target.m_hip.transform.forward * 1f); //GetLocalPlayer().transform.position = aimPos; PlayerManager.GetLocalPlayer().GetComponentInChildren <Torso>().transform.position = aimPos; } } //Teleport to the newest marker if (Input.GetKey(KeyCode.Mouse3)) { var marker = FindObjectOfType <Landfall.Network.MarkerHandler>().markers; float lastChange = 99999f; Vector3 pos = Camera.main.transform.position; foreach (var mark in marker) { if (mark == null || !mark.active) { continue; } if (mark.sinceChange < lastChange) { pos = mark.position; lastChange = mark.sinceChange; } } PlayerManager.GetLocalPlayer().GetComponentInChildren <Torso>().transform.position = pos; } //Kill nearest Player if (Input.GetKeyDown(KeyCode.K)) { KillPlayerButton(); } //Spawn predefined set of items, some won't spawn if (Input.GetKey(KeyCode.B)) { int[] itemsToSpawn = { 50, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 60, 50, 130, 29, 17, 44, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 31, 31, 31 }; for (int i = 0; i < itemsToSpawn.Length; i++) { ItemManager.AddItem(i); } } //Taze nearest Player for 9999f seconds if (Input.GetKey(KeyCode.T)) { GunManager.TazePlayer(PlayerManager.NearestPlayer, true, 9999f); } //Untaze nearest Player if (Input.GetKey(KeyCode.Q)) { GunManager.UnTazePlayer(PlayerManager.NearestPlayer); } //Speedhack kinda, key-> Middlemousebutton if (Input.GetKey(KeyCode.Mouse2)) { PlayerManager.GetLocalPlayer().GetComponent <InputHandler>().inputMovementDirection += Camera.main.transform.forward * 9f; } } if (HackSettings.GetState("HACK_Gunhack")) { try { Gun CurrentGun = GunManager.GetCurrentGun(); /*var CurrentStrength = PlayerManager.GetLocalPlayer().GetComponent<MeleeWeapon>(); * if (CurrentStrength) * { * CurrentStrength.damageOnHit = 99999f; * }*/ if (CurrentGun) { List <Component> ListToDelete = new List <Component> { CurrentGun.Component_Recoil(), CurrentGun.GetComponent <AddScreenShake>(), CurrentGun.GetComponentInChildren <ParticleSystem>(), CurrentGun.GetComponent <GunSFX>(), CurrentGun.projectile.GetComponentInChildren <ProjectileHit>().GetComponentInChildren <ParticleSystem>() }; foreach (var k in ListToDelete) { if (k) { DestroyObject(k); } } CurrentGun.bullets = 99; CurrentGun.bulletsInMag = 99; CurrentGun.currentFireMode = 3; var ProjectHit = CurrentGun.projectile.GetComponentInChildren <ProjectileHit>(); if (ProjectHit) { ProjectHit.damage = 9999f; ProjectHit.effectMultiplier = 9999f; ProjectHit.force = 9999f; } } } catch (Exception ex) { } } if (HackSettings.GetState("HACK_SpamHeal")) { NetworkSend.SendHealRequest(); } if (Input.GetKeyDown(KeyCode.F8)) { SendChat(PlayerManager.GetLocalPlayer().m_torso.transform, PlayerManager.GetName(PlayerManager.GetLocalPlayer())); } if (Input.GetKeyDown(KeyCode.F9)) { HackSettings.Toggle("HACK_SendFakePosition"); } if (HackSettings.GetState("Aimbot_Silent")) { var target = PlayerManager.NearestPlayer; if (target) { GunManager.DoAimbot(target); } } if (HackSettings.GetState("HACK_SendFakePosition")) { NetworkManager.GetServerHandler().SendPlayerUpdate(PlayerManager.GetLocalPlayer().GetPosition() - new Vector3(0, 120, 0), Vector2.zero, PlayerManager.GetLocalPlayer().GetPosition() + new Vector3(0, -120, 0), 5); } if (HackSettings.GetState("HACK_NoGunArea")) { NetworkSend.DropThatWeaponArea(); } }
private void DrawPlayers() { foreach (Player player in PlayerManager.Players) { if (!player.IsPlayerValid(HackSettings.GetState("PM_IgnoreTeam"), true)) { continue; } if (HackSettings.GetState("PM_IgnoreDummies") && player.IsDummy()) { continue; } Torso m_torso = player.m_torso; float distanceToObj = Mathf.Floor(PlayerManager.DistanceTo(m_torso.transform)); if (distanceToObj > HackSettings.GetFloat("ESP_Player_Distance")) { continue; } var W2S = Camera.main.WorldToScreenPoint(m_torso.transform.position); if (W2S.z < 0.01f) { continue; } int healthRnd = (int)Math.Floor(player.m_playerDeath.health); float customESPHeight = 25 / distanceToObj * 34; W2S += new Vector3(customESPHeight - customESPHeight * 1.35f, customESPHeight, 0); Color drawColor = HackSettings.GetColor("ESP_Player_Color_General"); if (HackSettings.GetState("ESP_Player_Draw_Nearest")) { if (PlayerManager.NearestPlayer == player) { drawColor = HackSettings.GetColor("ESP_Player_Color_Nearest"); } } string drawText = (HackSettings.GetState("ESP_Player_Draw_Name") ? $"{PlayerManager.GetName(player)}" : "") + (HackSettings.GetState("ESP_Player_Draw_Distance") ? $"({distanceToObj})" : "") + (HackSettings.GetState("ESP_Player_Draw_Health") ? $"\n{healthRnd} HP" : ""); Vector2 drawSize = GUI.skin.GetStyle(drawText).CalcSize(new GUIContent(drawText)); /* * ToDo: Fix 2DBox size */ if (HackSettings.GetState("ESP_Player_Draw_2DBox")) { GuIDraw.Draw2DBox(W2S.x, (float)Screen.height - W2S.y, 30f, 60f, Color.blue); } GuIDraw.DrawShadow(new Rect(W2S.x - drawSize.x / 2, (float)Screen.height - W2S.y, drawSize.x, drawSize.y), new GUIContent(drawText), GUI.skin.GetStyle(""), drawColor, Color.black, Vector2.zero); if (HackSettings.GetState("ESP_Player_Draw_HeadX")) { Vector3 headW2S = Camera.main.WorldToScreenPoint(player.m_head.transform.position); if (headW2S.z > 0.01f) { GuIDraw.DrawShadow(new Rect(headW2S.x, (float)Screen.height - headW2S.y, 40, 40), new GUIContent("X"), GUI.skin.GetStyle(""), drawColor, Color.black, Vector2.zero); } } bool shouldIGlow = HackSettings.GetState("ESP_Player_Draw_Glow"); player.gameObject.MakeMeGlow(drawColor, shouldIGlow); } }
public static void MainMenu_Index3() { GUILayout.BeginVertical(); HackSettings.SetString("GUI_Debug_Text", GUILayout.TextArea(HackSettings.GetString("GUI_Debug_Text"))); GUILayout.EndVertical(); }
public static void MenuWindow(int id) { if (id == 0) { GUI.DragWindow(new Rect(0, 0, 300, 20)); GUILayout.BeginHorizontal(); if (GUILayout.Button("Main")) { HackSettings.SetInt("GUI_Main_Index", 0); } if (GUILayout.Button("ESP")) { HackSettings.SetInt("GUI_Main_Index", 1); } if (GUILayout.Button("Items")) { HackSettings.SetInt("GUI_Main_Index", 2); } if (GUILayout.Button("Debug")) { HackSettings.SetInt("GUI_Main_Index", 3); } GUILayout.EndHorizontal(); GUILayout.BeginArea(new Rect(20, 70, 460, 460)); HackSettings.SetVector2("GUI_SpawnItems_Scroll", GUILayout.BeginScrollView(HackSettings.GetVector2("GUI_SpawnItems_Scroll"))); switch (HackSettings.GetInt("GUI_Main_Index")) { case 0: MainMenu_Index0(); break; case 1: MainMenu_Index1(); break; case 2: MainMenu_Index2(); break; case 3: MainMenu_Index3(); break; default: break; } GUILayout.EndScrollView(); GUILayout.EndArea(); /*GUILayout.BeginVertical(); * GUILayout.Label("F1: Hide/Show Menu"); * HackSettings.SetState("ESP_Player_Draw",GUILayout.Toggle(HackSettings.GetState("ESP_Player_Draw"), "(F2)Draw Players")); * HackSettings.SetState("Aimbot_Silent", GUILayout.Toggle(HackSettings.GetState("Aimbot_Silent"), "Silent Aimbot")); * * //_F4 = GUILayout.Toggle(_F4, "(F4)Gunhack"); * HackSettings.SetState("ESP_Item_Draw",GUILayout.Toggle(HackSettings.GetState("ESP_Item_Draw"), "(F5)Draw Items")); * //_F6 = GUILayout.Toggle(_F6, "(F6)Spam Heal"); * if (GUILayout.Button("(K)Kill nearest Player")) * PlayerManager.KillPlayer(PlayerManager.GetNearestPlayer(true)); * HackSettings.SetState("HACK_SendFakePosition",GUILayout.Toggle(HackSettings.GetState("HACK_SendFakePosition"), "(F9)Spam fake location")); * GUILayout.EndVertical(); * * GUILayout.BeginHorizontal(); * HackSettings.SetString("GUI_Main_Textbox1", GUILayout.TextField(HackSettings.GetString("GUI_Main_Textbox1"))); * /*if (GUILayout.Button("Spawn Item")) * SpawnItemButton(); * if (GUILayout.Button("Pick up all Items")) * { * foreach (var item in ItemManager.Pickups) * { * item.PickupFar(); * } * } * GUILayout.EndHorizontal(); * * GUILayout.BeginVertical(); * GUILayout.Label($"ESP Distance: {HackSettings.GetFloat("ESP_Player_Distance")}"); * HackSettings.SetFloat("ESP_Player_Distance",GUILayout.HorizontalSlider(HackSettings.GetFloat("ESP_Player_Distance"), 20, 1500)); * GUILayout.EndVertical(); * if (GUILayout.Button("Change Name")) * { * NetworkManager.ChangeName(HackSettings.GetString("FakeName")); * } * if (GUILayout.Button("T: Taze nearest Player")) * GunManager.TazePlayer(PlayerManager.GetNearestPlayer(), true); */ //HackSettings.SetState("GUI_SpawnItems_Show", GUILayout.Toggle(HackSettings.GetState("GUI_SpawnItems_Show"), "Spawn menu")); } else if (id == 1) { GUI.DragWindow(new Rect(0, 0, 500, 20)); HackSettings.SetVector2("GUI_SpawnItems_Scroll", GUILayout.BeginScrollView(HackSettings.GetVector2("GUI_SpawnItems_Scroll"))); GUILayout.BeginVertical(); foreach (Pickup.JGHOAEDPDBB type in Enum.GetValues(typeof(Pickup.JGHOAEDPDBB))) { GUILayout.Label(Enum.GetName(typeof(Pickup.JGHOAEDPDBB), type)); List <ItemDataEntry> listOfItems = ItemManager.GetItemList(type); foreach (ItemDataEntry entry in listOfItems) { if (GUILayout.Button(entry.pickup.itemName)) { ItemManager.AddItem(entry.pickup.m_itemIndex); } } } GUILayout.EndVertical(); GUILayout.EndScrollView(); } }
public static void UpdatePlayerList() { Players = UnityEngine.Object.FindObjectsOfType <Player>(); NearestPlayer = GetNearestPlayer(HackSettings.GetState("PM_IgnoreTeam")); }
public static void AddLogText(string text) { string newtext = $"{HackSettings.GetString("GUI_Debug_Text")} {text} \n"; HackSettings.SetString("GUI_Debug_Text", newtext); }