Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (opt.teleport.telekill)
- {
- if (GetAsyncKeyState(VK_END))
- opt.teleport.telekill_lock = 0;
- if (opt.teleport.telekill_fov)
- opt.teleport.telekill_aimfov = (opt.teleport.telekill_fov * 5);
- UINT BestTarget = -1;
- DOUBLE fClosestPos = 99999;
- float radiusx = opt.teleport.telekill_aimfov * (ScreenCenterX / 100);
- float radiusy = opt.teleport.telekill_aimfov * (ScreenCenterY / 100);
- if (GetAsyncKeyState('Y'))
- {
- int point = (radiusx + radiusy) / 2;
- Tools.DrawCircle(pDevice, ScreenCenterX - opt.teleport.telekill_aimfov, ScreenCenterY - opt.teleport.telekill_aimfov, point, 60, Menu.GreenOpacity);
- }
- D3DXVECTOR3 MyPos(pBase->GetLocation().x, pBase->GetLocation().y, pBase->GetLocation().z);
- D3DXVECTOR3 EnemyPos(pEntity->GetLocation().x - 1, pEntity->GetLocation().y, pEntity->GetLocation().z - 1);
- if (opt.teleport.telekill_lock)
- {
- pBase->SetLocation(EnemyPos);
- opt.teleport.telekill_lockkey = 1;
- }
- if (!opt.teleport.telekill_lock)
- opt.teleport.telekill_lockkey = 0;
- if (isMale)
- TeleDetermine = MLikod;
- if (isFemale)
- TeleDetermine = FLikod;
- float CrosshairDistance = Tools.GetDistance(TeleDetermine.x, TeleDetermine.y, ScreenCenterX, ScreenCenterY);
- if (TeleDetermine.x >= ScreenCenterX - radiusx && TeleDetermine.x <= ScreenCenterX + radiusx && TeleDetermine.y >= ScreenCenterY - radiusy && TeleDetermine.y <= ScreenCenterY + radiusy)
- {
- if (CrosshairDistance < fClosestPos)
- {
- fClosestPos = CrosshairDistance;
- if (isMale)
- TeleTarget = MLikod;
- if (isFemale)
- TeleTarget = FLikod;
- double DistX = TeleTarget.x - ScreenCenterX;
- double DistY = TeleTarget.y - ScreenCenterY;
- Tools.DrawCircle(pDevice, TeleTarget.x, TeleTarget.y, 5, 60, Menu.ORANGE);
- Tools.DrawCircle(pDevice, TeleTarget.x, TeleTarget.y, 4, 60, Menu.ORANGE);
- Tools.DrawCircle(pDevice, TeleTarget.x, TeleTarget.y, 3, 60, Menu.ORANGE);
- Tools.DrawCircle(pDevice, TeleTarget.x, TeleTarget.y, 2, 60, Menu.ORANGE);
- DistX /= 1;
- DistY /= 1;
- if (opt.teleport.telekill_key == 1 && (GetAsyncKeyState('T') & 0x8000))
- {
- if (timeGetTime() >= (frametime + CLOCKS_PER_SEC / 100))
- {
- mouse_event(MOUSEEVENTF_MOVE, (int)DistX, (int)DistY, 0, NULL);
- if (opt.teleport.telekill_passive)
- pEntity->SetLocation(MyPos);
- else
- pBase->SetLocation(EnemyPos);
- opt.teleport.telekill_lock = 1;
- frametime = timeGetTime();
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement