//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); } } }
public static void DoAimbot(Player target) { if (!PlayerManager.IsPlayerValid(target)) { return; } var CurrentGun = GunManager.GetCurrentGun(); if (CurrentGun) { if (target.IsVisible()) { Vector3 headPos = target.m_head.transform.position; Transform gunTransform = CurrentGun.GetGayField <Transform>("LMFIBANOEHH"); Vector3 targetPos = headPos; /*+ BulletDrop + movementprediction*/; gunTransform.LookAt(targetPos); } } }
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(); } }