Aimbot FOV problem

Posts 1–6 of 6 · Page 1 of 1
Aimbot FOV problem
Hey, I'm trying to make a custom FOV to Aimbot, but it never works.
Here's how I'm using:

Code:
D3DVIEWPORT9 viewP;
pDevice->GetViewport(&viewP);
DWORD ScreenCenterX = viewP.Width / 2;
DWORD ScreenCenterY = viewP.Height / 2;

int FovPixels = (FoV * viewP.Width) / 360; //FoV in degrees
int FOV_X_Positivo = ScreenCenterX + FovPixels;
int FOV_X_Negativo = ScreenCenterX - FovPixels;

if ((AimPos.x >= FOV_X_Negativo) && (AimPos.x <= FOV_X_Positivo)) {
       //Do Aimbot functions here
}
Any HELP is welcome. Thanks.
Quote Originally Posted by vaisefud3 View Post
Hey, I'm trying to make a custom FOV to Aimbot, but it never works.
Here's how I'm using:

Code:
D3DVIEWPORT9 viewP;
pDevice->GetViewport(&viewP);
DWORD ScreenCenterX = viewP.Width / 2;
DWORD ScreenCenterY = viewP.Height / 2;

int FovPixels = (FoV * viewP.Width) / 360; //FoV in degrees
int FOV_X_Positivo = ScreenCenterX + FovPixels;
int FOV_X_Negativo = ScreenCenterX - FovPixels;

if ((AimPos.x >= FOV_X_Negativo) && (AimPos.x <= FOV_X_Positivo)) {
       //Do Aimbot functions here
}
Any HELP is welcome. Thanks.
https://www.mpgh.net/forum/showthrea...4#post13645664

using a basic trigonometric concepts, do you need use 'Distance between two points'.

Code:
a = Your Current View Angle.
b = Destination View Angle.

d = √( Xa - Xb )² + ( Ya - Yb )²
Quote Originally Posted by luizimloko View Post
using a basic trigonometric concepts, do you need use 'Distance between two points'.

Code:
a = Your Current View Angle.
b = Destination View Angle.

d = √( Xa - Xb )² + ( Ya - Yb )²
Analytical Geometry
@Wyo please close, my problem was solved. The error was on another part of the code.
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us