Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1.  
  2. void CVisuals::DrawFOVCrosshair()
  3. {
  4. CBaseEntity* localplayer = (CBaseEntity*)I::ClientEntList->GetClientEntity(I::Engine->GetLocalPlayer());
  5. if (!localplayer->GetAlive())
  6. return;
  7.  
  8. int width, height;
  9. I::Engine->GetScreenSize(width, height);
  10.  
  11. float radius;
  12.  
  13. if (Vars.Misc.Test)
  14.  
  15. {
  16. float aimbotFov = Vars.Legitbot.Aimbot.FOV;
  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