Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Telekill()
- {
- auto ros_base = reinterpret_cast<uintptr_t>(GetModuleHandle(NULL));
- auto Ros_Client = (ClientApper*)(ros_base + OFFSET_CLIENT);
- auto mListItem = Ros_Client->m_pFirst->m_pStart;
- bool first = true;
- for (;;)
- {
- if (!first) mListItem = mListItem->m_pNext;
- first = false;
- if (mListItem == Ros_Client->m_pFirst->m_pEnd)
- break;
- auto entity_addy = (DWORD)(mListItem->m_pEntity ^ mListItem->m_EntityKey->Val);
- auto curEntity = (CEntity*)entity_addy;
- DWORD MyEntity = (DWORD)(ros_base + OFFSET_LOCAL);
- D3DXVECTOR3 MyPosition;
- if ((DWORD)curEntity == MyEntity) {
- MyPosition = GetDecryptedPos(curEntity);
- D3DXVECTOR3 EnemyPos;
- DWORD Hotkey = NULL;
- if (opt.teleport.hotkey == 1) Hotkey = VK_SHIFT;
- if (opt.teleport.tele || opt.teleport.hotkey || opt.teleport.fov)
- {
- if (GetAsyncKeyState(opt.teleport.hotkey) & 0x80000)
- {
- EnemyPos = GetEncryptedPosition(curEntity);
- MyPosition.x = EnemyPos.x;
- MyPosition.y = EnemyPos.y;
- MyPosition.z = EnemyPos.z;
- }
- }
- }
- }
- }
- float aimfov;
- if (opt.teleport.fov == 1)
- {
- if (GetAsyncKeyState('Y') & 1)
- float aimfov = 5.f;
- float radiusx = aimfov * (ScreenCX / 100);
- float radiusy = aimfov * (ScreenCY / 100);
- float point = (radiusx + radiusy) / 2;
- DrawFOV(pDevice, ScreenCX, ScreenCY, point, YELLOW(255));
- }
- if (opt.teleport.fov == 2)
- {
- if (GetAsyncKeyState('Y') & 1)
- float aimfov = 10.f;
- float radiusx = aimfov * (ScreenCX / 100);
- float radiusy = aimfov * (ScreenCY / 100);
- float point = (radiusx + radiusy) / 2;
- DrawFOV(pDevice, ScreenCX, ScreenCY, point, YELLOW(255));
- }
- if (opt.teleport.fov == 3)
- {
- if (GetAsyncKeyState('Y') & 1)
- float aimfov = 15.f;
- float radiusx = aimfov * (ScreenCX / 100);
- float radiusy = aimfov * (ScreenCY / 100);
- float point = (radiusx + radiusy) / 2;
- DrawFOV(pDevice, ScreenCX, ScreenCY, point, YELLOW(255));
- }
- if (opt.teleport.fov == 4)
- {
- float aimfov = 20.0f;
- float radiusx = aimfov * (ScreenCX / 100);
- float radiusy = aimfov * (ScreenCY / 100);
- float point = (radiusx + radiusy) / 2;
- DrawFOV(pDevice, ScreenCX, ScreenCY, point, YELLOW(255));
- }
- if (opt.teleport.fov == 5)
- {
- if (GetAsyncKeyState('Y') & 1)
- float aimfov = 25.0f;
- float radiusx = aimfov * (ScreenCX / 100);
- float radiusy = aimfov * (ScreenCY / 100);
- float point = (radiusx + radiusy) / 2;
- DrawFOV(pDevice, ScreenCX, ScreenCY, point, YELLOW(255));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement