• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 7 of 7
    1. #1
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      acss's Avatar
      Join Date
      Nov 2012
      Posts
      2
      Thanks (-->)
      1
      Thanks (<--)
      0

      World to screen coordinates?

      Silent VPN
      Hi

      I am trying to create an external esp hack for assault cube.
      The problem I have is that I cant figure out how to convert world to screen coordinates. I know there is a function called D3DXVec3Project but this function requires a projection, view and world matrix and I dont have any of these (I just have the matrices from the device of my layered window where I do drawing action and I dont think that they are the right ones for this function).
      The things I got are the X, Y and Z coordinates of an enemy and the X, Y viewangle of the player and of course the dimensions of the window. Are these information enough to convert the coordinates or do I need to get more information?

    2. #2
      Hacker
      Learning to hack games!
       
      Pawning
       
      Fleep's Avatar
      Join Date
      May 2012
      Posts
      626
      Thanks (-->)
      208
      Thanks (<--)
      742
      Hey there acss, W2S can be tricky business specially if your not great at Maths(such as myself) I'm pretty sure I used a function for that in my COD4 hacks for ESP and aimbot. Please go to this thread and check it out. https://guidedhacking.com/showthread...napLine-AIMBOT

      It should have what you need but you will probably need to change certain vars etc, but the code is fairly well commented so you should be alright with that.

      Fleep

    3. Thanks acss thanked for this post
    4. #3
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      acss's Avatar
      Join Date
      Nov 2012
      Posts
      2
      Thanks (-->)
      1
      Thanks (<--)
      0
      Thanks Fleep for your quick reply
      I will take a look on the code

    5. #4
      Newbie
      Learning to hack games!
       
      Sneaky
       
      leetal99's Avatar
      Join Date
      Nov 2013
      Posts
      8
      Thanks (-->)
      0
      Thanks (<--)
      0
      Yo Fleep, I have one question.

      In this function

      PlayerDataVec GetPlayerVec()
      {
      PlayerDataVec playerRet; // Declare our player vector here

      playerRet.health =*(int*)(0x12886A0);
      playerRet.isInGame =*(int*)(0x74E35C);
      //Get our client number
      playerRet.clientNum = *(int*)(0x74E338);
      playerRet.team = *(int*)(0x83928C); //GET OUR current team so we don't shoot at team mates
      //GET OUR FIELD OF VIEW
      fov[0] = *(float*)(0x797610);
      fov[1] = *(float*)(0x797614);

      viewAngles.x = *(float*)(0x79B698);
      viewAngles.y = *(float*)(0x79B69C);
      viewAngles.z = *(float*)(0x79B6A0);
      //playerRet.xPos = *(float*)(0x797618); // these can also be used
      //playerRet.yPos = *(float*)(0x79761C); // but they're later down in CE list
      //playerRet.zPos = *(float*)(0x797620); // so the top-most are used below
      playerRet.xPos = *(float*)(0x72AF2C);
      playerRet.zPos = *(float*)(0x72AF30);
      playerRet.yPos = *(float*)(0x72AF34);
      playerRet.clientNum = *(float*)(0x74E338);

      return playerRet;
      }



      you read 3 viewAngles. And like, if X is camera Yaw, and Y is the Pitch, then what is Z?

    6. #5
      Hacker
      shell toes yes
       
      Lagging
       
      squeenie's Avatar
      Join Date
      Mar 2013
      Posts
      717
      Thanks (-->)
      599
      Thanks (<--)
      222
      Z is roll. For example, leaning left and right. Not always used.

    7. #6
      Newbie
      Learning to hack games!
       
      Sneaky
       
      leetal99's Avatar
      Join Date
      Nov 2013
      Posts
      8
      Thanks (-->)
      0
      Thanks (<--)
      0
      Ah, thanks man. So if I dont use it I should just put it to 0 or?

    8. #7
      Hacker
      shell toes yes
       
      Lagging
       
      squeenie's Avatar
      Join Date
      Mar 2013
      Posts
      717
      Thanks (-->)
      599
      Thanks (<--)
      222
      Silent VPN
      Quote Originally Posted by leetal99 View Post
      Ah, thanks man. So if I dont use it I should just put it to 0 or?
      Up to you man

    Similar Game Hacker Threads

    1. [Help] Aimbot using Screen Coordinates & SendInput
      By [GH]Rake in forum Hacking Help
      Replies: 5
      Last Post: 03-10-2016, 02:06 AM
    2. [Source Code] [OpenGL] World To Screen
      By [GH]Rake in forum Direct-X, OpenGL
      Replies: 4
      Last Post: 07-04-2015, 02:30 PM
    3. World To Screen.
      By simonpaa in forum Hacking Help
      Replies: 6
      Last Post: 01-22-2015, 03:43 PM
    4. [help] 3d to screen coordinates
      By NTvalk in forum ESP - WorldToScreen - ViewMatrix
      Replies: 3
      Last Post: 10-10-2013, 11:38 AM
    5. Please help\Tutorial World 2 Screen
      By VDV777 in forum C/C++
      Replies: 16
      Last Post: 06-12-2013, 09:37 AM

    Tags for this Thread