• 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
  • Page 1 of 2 12 LastLast
    Results 1 to 10 of 12
    1. #1
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      inZertion's Avatar
      Join Date
      Nov 2012
      Posts
      10
      Thanks (-->)
      3
      Thanks (<--)
      0

      Talking Mouse Location - Possible?

      Silent VPN
      Hi all,
      I'm working on a trainer/hack for Mirror's Edge and I wondered if anyone knew how to get the location where the "crosshair" is pointing at, and/or if it's even possible!
      Thanks in advance.

    2. #2
      Hacker
      shell toes yes
       
      Lagging
       
      squeenie's Avatar
      Join Date
      Mar 2013
      Posts
      717
      Thanks (-->)
      599
      Thanks (<--)
      222
      Its always possible it just might be incredibly difficult in some situations. I don't really know anything about mirrors edge when it comes to hacking but I do think it is an absolutely fantastic game and I also have been thinking of making a trainer for it. If I get round to it I'll let you know what I find.

    3. Thanks inZertion thanked for this post
    4. #3
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      DrD's Avatar
      Join Date
      Jun 2013
      Posts
      1
      Thanks (-->)
      0
      Thanks (<--)
      0

    5. #4
      Hacker
      Turning to page 394...
       
      Coding
       
      Liduen's Avatar
      Join Date
      May 2013
      Location
      Germany
      Posts
      713
      Thanks (-->)
      161
      Thanks (<--)
      226
      Quote Originally Posted by DrD View Post
      No he wants to make a teleport hack, which teleports you to the location in the game you're looking at.
      My contributions
      UrbanTerror | OpenGL - ModelLogger | Polymorphic junk code | Tutorial/Article Collection
      Admiring technological singularity

    6. #5
      Coder
      Kappa
       
      Hacking
       
      Szaka's Avatar
      Join Date
      Mar 2013
      Posts
      168
      Thanks (-->)
      1
      Thanks (<--)
      6
      no, he is trying to make an aimbot and hes asking for xy of the crosshair, just open CE and aim up down up down and scan for increate/decrease

    7. #6
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      kaz's Avatar
      Join Date
      Apr 2013
      Posts
      166
      Thanks (-->)
      41
      Thanks (<--)
      48
      you're looking for mouse coordinates on the X and Y of the screen? It will be in the middle of the game window because it automatically repositions it there.

      get Resolution of the window. GetWindowRect

      RECT blahblah;

      width = (blahblah.right - blahblah.left )/2
      height= (blahblah.bottom- blahblah.top)/2


      POINT Cursor;

      Cursor.x = width+blahblah.left;
      Cursor.y = height+blahblah.top;

      this gets the middle of the window you're going for so you can setcursorpos and shit

    8. #7
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      inZertion's Avatar
      Join Date
      Nov 2012
      Posts
      10
      Thanks (-->)
      3
      Thanks (<--)
      0
      I'm trying to make a teleport hack, I haven't done this before so I don't know if it'll help that much having the coordinates for the cursor. I want to find the coordinates for where the mouse is pointing at, a location.

    9. #8
      Hacker
      Turning to page 394...
       
      Coding
       
      Liduen's Avatar
      Join Date
      May 2013
      Location
      Germany
      Posts
      713
      Thanks (-->)
      161
      Thanks (<--)
      226
      Quote Originally Posted by Szaka View Post
      no, he is trying to make an aimbot and hes asking for xy of the crosshair, just open CE and aim up down up down and scan for increate/decrease
      Quote Originally Posted by inZertion View Post
      I'm trying to make a teleport hack, I haven't done this before so I don't know if it'll help that much having the coordinates for the cursor. I want to find the coordinates for where the mouse is pointing at, a location.
      ...#10chars
      My contributions
      UrbanTerror | OpenGL - ModelLogger | Polymorphic junk code | Tutorial/Article Collection
      Admiring technological singularity

    10. #9
      Newbie
      Studying, Coding, Vacationing,
      Hacking
       
      Coding
       
      NebulaGrey's Avatar
      Join Date
      Jun 2014
      Location
      Kentucky
      Posts
      31
      Thanks (-->)
      1
      Thanks (<--)
      5
      I've been thinking a little and I think the only way this is possible is if you know the maximum radius of the map around you. From there you can use similar triangle ratios and Pythagorean theorem and with a little bit of trig, figure out the adjacent side of both the yaw triangle and pitch triangle. That should get you the change in x and y you need. for the Z component, the height (opposite) part of the triangle should be the same on both triangles I think, else it's the pitch triangle.
      Here are some pictures of the math I propose.

      pitch triangle.bmp
      Sorry for bad drawings..

      PS: to solve for the second variable use tan(Θ) = height/X, solve for one and plug it into the similar tri-equation in the picture.

      Edit-
      I did some scratch math on paper and the numbers aren't working out as well as I thought. I feel like I'm missing something here.
      Another approach is tan(phi) = height / (x*y*sin(theta))
      But the problem I can't completely workout is how to get at least one component to have a number.
      Unfortunately similar triangles seems to be useless here.

      So either I missed something crucial or it's simply impossible without an entity in the other end.
      Last edited by NebulaGrey; 06-11-2014 at 04:07 AM.

    11. #10
      Hacker
      shell toes yes
       
      Lagging
       
      squeenie's Avatar
      Join Date
      Mar 2013
      Posts
      717
      Thanks (-->)
      599
      Thanks (<--)
      222
      Silent VPN
      Quote Originally Posted by NebulaGrey View Post
      I've been thinking a little and I think the only way this is possible is if you know the maximum radius of the map around you. From there you can use similar triangle ratios and Pythagorean theorem and with a little bit of trig, figure out the adjacent side of both the yaw triangle and pitch triangle. That should get you the change in x and y you need. for the Z component, the height (opposite) part of the triangle should be the same on both triangles I think, else it's the pitch triangle.
      Here are some pictures of the math I propose.

      pitch triangle.bmp
      Sorry for bad drawings..

      PS: to solve for the second variable use tan(Θ) = height/X, solve for one and plug it into the similar tri-equation in the picture.

      Edit-
      I did some scratch math on paper and the numbers aren't working out as well as I thought. I feel like I'm missing something here.
      Another approach is tan(phi) = height / (x*y*sin(theta))
      But the problem I can't completely workout is how to get at least one component to have a number.
      Unfortunately similar triangles seems to be useless here.

      So either I missed something crucial or it's simply impossible without an entity in the other end.
      Doesn't really Solve the problem of collision. How far forward do you want to move? Read up on the Unreal 3 engine, there may be a variable that stores the coordinates of where you are looking but your best bet would be to use a trace function.

    Page 1 of 2 12 LastLast

    Similar Game Hacker Threads

    1. [Help] Static library location
      By markfrancis in forum Hacking Help
      Replies: 0
      Last Post: 05-01-2016, 11:07 PM
    2. Finding location on body
      By scrapsmoke in forum Counter-Strike: Source Hacks
      Replies: 3
      Last Post: 06-09-2015, 04:07 AM
    3. How can i find the Offset location in this Source code?
      By emilo0212 in forum Hacking Help
      Replies: 3
      Last Post: 10-12-2014, 03:51 PM
    4. Getting the contents of a memory location as a string
      By Shadoninja in forum Hacking Help
      Replies: 5
      Last Post: 05-14-2013, 11:18 AM
    5. COD 4 Finding Mouse X and Mouse Y
      By Fleep in forum Hacking Help
      Replies: 12
      Last Post: 08-02-2012, 02:19 PM

    Tags for this Thread