Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. void Telekill()
  2. {
  3. auto ros_base = reinterpret_cast<uintptr_t>(GetModuleHandle(NULL));
  4. auto Ros_Client = (ClientApper*)(ros_base + OFFSET_CLIENT);
  5. auto mListItem = Ros_Client->m_pFirst->m_pStart;
  6. bool first = true;
  7. for (;;)
  8. {
  9. if (!first) mListItem = mListItem->m_pNext;
  10. first = false;
  11. if (mListItem == Ros_Client->m_pFirst->m_pEnd)
  12. break;
  13. auto entity_addy = (DWORD)(mListItem->m_pEntity ^ mListItem->m_EntityKey->Val);
  14. auto curEntity = (CEntity*)entity_addy;
  15.  
  16. DWORD MyEntity = (DWORD)(ros_base + OFFSET_LOCAL);
  17. D3DXVECTOR3 MyPosition;
  18. if ((DWORD)curEntity == MyEntity) {
  19. MyPosition = GetDecryptedPos(curEntity);
  20.  
  21.  
  22. D3DXVECTOR3 EnemyPos;
  23. DWORD Hotkey = NULL;
  24. if (opt.teleport.hotkey == 1) Hotkey = VK_SHIFT;
  25. if (opt.teleport.tele || opt.teleport.hotkey || opt.teleport.fov)
  26. {
  27. if (GetAsyncKeyState(opt.teleport.hotkey) & 0x80000)
  28. {
  29. EnemyPos = GetEncryptedPosition(curEntity);
  30.  
  31. MyPosition.x = EnemyPos.x;
  32. MyPosition.y = EnemyPos.y;
  33. MyPosition.z = EnemyPos.z;
  34. }
  35. }
  36.  
  37.  
  38. }
  39.  
  40. }
  41.  
  42. }
  43.  
  44. float aimfov;
  45. if (opt.teleport.fov == 1)
  46. {
  47. if (GetAsyncKeyState('Y') & 1)
  48. float aimfov = 5.f;
  49. float radiusx = aimfov * (ScreenCX / 100);
  50. float radiusy = aimfov * (ScreenCY / 100);
  51.  
  52. float point = (radiusx + radiusy) / 2;
  53. DrawFOV(pDevice, ScreenCX, ScreenCY, point, YELLOW(255));
  54.  
  55. }
  56. if (opt.teleport.fov == 2)
  57. {
  58. if (GetAsyncKeyState('Y') & 1)
  59. float aimfov = 10.f;
  60. float radiusx = aimfov * (ScreenCX / 100);
  61. float radiusy = aimfov * (ScreenCY / 100);
  62.  
  63. float point = (radiusx + radiusy) / 2;
  64. DrawFOV(pDevice, ScreenCX, ScreenCY, point, YELLOW(255));
  65.  
  66. }
  67. if (opt.teleport.fov == 3)
  68. {
  69. if (GetAsyncKeyState('Y') & 1)
  70. float aimfov = 15.f;
  71. float radiusx = aimfov * (ScreenCX / 100);
  72. float radiusy = aimfov * (ScreenCY / 100);
  73.  
  74. float point = (radiusx + radiusy) / 2;
  75. DrawFOV(pDevice, ScreenCX, ScreenCY, point, YELLOW(255));
  76.  
  77. }
  78. if (opt.teleport.fov == 4)
  79. {
  80. float aimfov = 20.0f;
  81. float radiusx = aimfov * (ScreenCX / 100);
  82. float radiusy = aimfov * (ScreenCY / 100);
  83.  
  84. float point = (radiusx + radiusy) / 2;
  85. DrawFOV(pDevice, ScreenCX, ScreenCY, point, YELLOW(255));
  86.  
  87. }
  88. if (opt.teleport.fov == 5)
  89. {
  90. if (GetAsyncKeyState('Y') & 1)
  91. float aimfov = 25.0f;
  92. float radiusx = aimfov * (ScreenCX / 100);
  93. float radiusy = aimfov * (ScreenCY / 100);
  94.  
  95. float point = (radiusx + radiusy) / 2;
  96. DrawFOV(pDevice, ScreenCX, ScreenCY, point, YELLOW(255));
  97.  
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement