Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. void CVisuals::DrawFOVCrosshair()
  2. {
  3. CBaseEntity* localplayer = (CBaseEntity*)I::ClientEntList->GetClientEntity(I::Engine->GetLocalPlayer());
  4. if (!localplayer->GetAlive())
  5. return;
  6.  
  7. int width, height;
  8. I::Engine->GetScreenSize(width, height);
  9.  
  10. float radius;
  11. }
  12.  
  13. if (&Vars.Misc.Test)
  14.  
  15. {
  16. float aimbotFov = vars.legitbot.aimbot.fovb;
  17. float fov = 106;
  18. radius = tanf(DEG2RAD(aimbotFov) / 2) / tanf(DEG2RAD(fov) / 2) * width;
  19. }
  20.  
  21. D::Circle(Vector2D(width / 2, height / 2), 20, radius, Color::Red();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement