Results 1 to 6 of 6
  1. #1
    vaisefud3's Avatar
    Join Date
    Jun 2017
    Gender
    male
    Posts
    955
    Reputation
    10
    Thanks
    150
    My Mood
    Bored

    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.
    Press thanks if I helped

    Xigncode Security:


  2. #2
    jayjay153's Avatar
    Join Date
    Jan 2018
    Gender
    female
    Posts
    294
    Reputation
    10
    Thanks
    113
    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

    Last edited by jayjay153; 05-20-2018 at 10:43 PM.

  3. #3
    luizimloko's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    fs:[0]
    Posts
    1,879
    Reputation
    136
    Thanks
    10,137
    My Mood
    Yeehaw
    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 )²
    Last edited by luizimloko; 05-21-2018 at 09:05 AM.

  4. The Following User Says Thank You to luizimloko For This Useful Post:

    CaiozinhoFC1 (07-10-2018)

  5. #4
    O conhecimento é o caminho para liberdade.
    MPGH Member
    dreek1's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    localhost
    Posts
    1,175
    Reputation
    74
    Thanks
    1,263
    My Mood
    In Love
    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
    Public Hack:
    Jun 2012 / Dec 2017

  6. #5
    vaisefud3's Avatar
    Join Date
    Jun 2017
    Gender
    male
    Posts
    955
    Reputation
    10
    Thanks
    150
    My Mood
    Bored
    @Eoch please close, my problem was solved. The error was on another part of the code.
    Press thanks if I helped

    Xigncode Security:


  7. #6
    I got ants in my butt, and I needs to strut.
    Premium Seller
    Former Staff
    Premium Member
    Trusted
    Wyo's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Guadalajara
    Posts
    24,113
    Reputation
    4354
    Thanks
    4,203
    My Mood
    Lurking
    /closed .

Similar Threads

  1. [Help Request] Draw aimbot FOV
    By ElBitardo47 in forum Crossfire Coding Help & Discussion
    Replies: 2
    Last Post: 10-22-2017, 04:08 PM
  2. [Help] Aimbot FOV
    By affe2626 in forum Counter-Strike 2 Coding & Resources
    Replies: 0
    Last Post: 07-05-2017, 08:58 AM
  3. [Help] Aimbot low fov problem
    By l1m3w1r3 in forum Counter-Strike 2 Coding & Resources
    Replies: 5
    Last Post: 05-22-2016, 04:59 AM
  4. [Detected] ViKiNGHook: Public Edition [Silent Aimbot][Fov 120.0F][Visibility Check][ESP & Team]
    By viking911 in forum Counter-Strike 2 Hacks
    Replies: 37
    Last Post: 09-15-2015, 04:06 PM
  5. [Aimbot] Major problems finding addys
    By scriptkiddy in forum C++/C Programming
    Replies: 1
    Last Post: 10-12-2009, 12:19 AM