testhk

Basic Code for Basic Hacks Unturned

Jan 9th, 2016
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. Basic Code for Basic Hacks
  2. So I decided to organize a list of a bunch of easy to implement codes for hacks.
  3.  
  4. This list is intended for a few lines long hacks that are simple to use and implement, longer code such as ESPs and other things are not for this thread.
  5.  
  6. Code:
  7. Life[] LifeArray = UnityEngine.Object.FindObjectsOfType(typeof(Life)) as Life[];
  8. foreach (Life life in LifeArray)
  9. {
  10. life.tellFood(100);
  11. life.tellWater(100);
  12. life.tellHealth(100);
  13. life.tellSickness(100);
  14. life.tellBleeding(false);
  15. life.tellBones(false);
  16.  
  17. life.energyBuffer();
  18. }
  19. Godmode
  20. Code:
  21. if (antiAgro)
  22. {
  23. Sneaky.sneak(0);
  24. Sneaky.sneak(0.1f);
  25. Sneaky.expose(0);
  26. Sneaky.expose(0.1f);
  27. }
  28. No zombie agro
  29. Code:
  30. if (GUI.Button(new Rect(10, 0, 180, 30), "Agro all Zombies on me"))
  31. {
  32. Zombie[] zs = FindObjectsOfType(typeof(Zombie)) as Zombie[];
  33. foreach (Zombie player in zs)
  34. {
  35. player.attract(Camera.main.transform.position);
  36. }
  37. }
  38. Agro all zombies on given point
  39. Code:
  40. if (GUI.Button(new Rect(10, 410, 100, 30), "Swap UI"))
  41. {
  42. SleekRender.swapPaid();
  43. Images.swapPaid();
  44.  
  45. }
  46. Change UI to gold
  47. Code:
  48. SpawnItems.spawnItem(Convert.ToInt32(itemspawn), Convert.ToInt32(amount), Camera.main.transform.position);
  49. Item spawning
  50. Code:
  51. Time.timeScale = (whatever speed, 1.0f is the default);
  52. Easy speedhack
  53. Code:
  54. Color color = new Color(UnityEngine.Random.Range((float)0f, (float)1f), UnityEngine.Random.Range((float)0f, (float)1f), UnityEngine.Random.Range((float)0f, (float)1f));
  55. SpawnVehicles.create("(CAR NAME)" + UnityEngine.Random.Range(0, 2), 100, 100, Camera.main.transform.position + Vector3.up, transform.rotation * Quaternion.Euler(-90f, 0f, 0f), color);
  56. Spawn cars of a certain name
  57. Code:
  58. Network.Disconnect();
  59. Quick DC
  60. Code:
  61. if (GUI.Button(new Rect(10, 380, 100, 30), "Reset Loot")){
  62.  
  63. SpawnItems.reset();
  64. }
  65. Reset map loot (Single Player only)
Add Comment
Please, Sign In to add comment