• 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 9 of 9
    1. #1
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      j3b's Avatar
      Join Date
      Dec 2012
      Posts
      67
      Thanks (-->)
      2
      Thanks (<--)
      2

      Help with World2Screen

      Silent VPN
      Hello. I downloaded Fleeps ESP_MultiHack External to see on how to do an External ESP.
      Since i dont want to fully copy his code im doing trying to do it myself....

      But i have a problem with my World2Screen function...

      Here is the code : https://pastie.org/6083594



      The problem is when i run my program nothing comes up on the screen, so i checked ScreenX value, and it gave me" inf" and the ScreenY gave my "nan".

      And ofc i tried to draw on the screen just random and it worked.

      Soo my World2Screen function is wrong since it give me infitie values on ScreenX and soo on.

      Anyone got any ideas?


      Im doing it for the Source Engine ( Does it matter what World2Screen function you use? Isnt it the same math for all FPS games etc? )

    2. #2
      Nick
      Learning to hack games!
       
      Feeling Normal
       
      ndani14's Avatar
      Join Date
      Aug 2012
      Location
      Australia
      Posts
      53
      Thanks (-->)
      11
      Thanks (<--)
      25
      Hey from what i can see the equations seem correct as long as the
      fov[0] = tan(verticle FOV)
      fov[1] = tan(horizontal FOV)

      Are you sure that the up, forward and right vectors are being set properly?

      I'm guessing it's done in.
      AngleVectors();

    3. #3
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      j3b's Avatar
      Join Date
      Dec 2012
      Posts
      67
      Thanks (-->)
      2
      Thanks (<--)
      2
      I probably missed the viewAngle thing here, but my question is.. why do i need to kno the viewAngle of enemies... Dont i just need the Players address?

    4. #4
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      j3b's Avatar
      Join Date
      Dec 2012
      Posts
      67
      Thanks (-->)
      2
      Thanks (<--)
      2
      Okay, i fixed the fov now... and i used myPlayers viewangle, the boxes shows up.... but on the wrong places. Any ideas ?


      Does it matter which World2Screen func i use?

    5. #5
      Nick
      Learning to hack games!
       
      Feeling Normal
       
      ndani14's Avatar
      Join Date
      Aug 2012
      Location
      Australia
      Posts
      53
      Thanks (-->)
      11
      Thanks (<--)
      25
      how wrong? like just a little bit off or on the oposite side of the screen ?

      have a read here it might help you
      https://www.scratchapixel.com/lesson...ection-matrix/

      some game can use different formulas but most fps are you same, you just need to try it out

    6. #6
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      j3b's Avatar
      Join Date
      Dec 2012
      Posts
      67
      Thanks (-->)
      2
      Thanks (<--)
      2
      Well, i have them on my screen now, the boxes... but the problem is that its not on the enemy.

      And i dont kno why you told me to set fov[0] = tan(FOV-VALUE) and soo on.. since Fleep is not doing it in his source code





      here is my code now : https://pastie.org/6089507
      Last edited by j3b; 02-07-2013 at 03:31 PM. Reason: Gonna show my code

    7. #7
      Nick
      Learning to hack games!
       
      Feeling Normal
       
      ndani14's Avatar
      Join Date
      Aug 2012
      Location
      Australia
      Posts
      53
      Thanks (-->)
      11
      Thanks (<--)
      25
      Do you understand how to derive the equations?
      If not are you willing to learn how to?

      Btw what game is it for?

    8. #8
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      j3b's Avatar
      Join Date
      Dec 2012
      Posts
      67
      Thanks (-->)
      2
      Thanks (<--)
      2
      Quote Originally Posted by ndani14 View Post
      Do you understand how to derive the equations?
      If not are you willing to learn how to?

      Btw what game is it for?

      Well, i fixed it now... In Fleeps code its something like 1/fov[1] ... i changed 1 to 90 and it works now. It render now the box on the player... But sometimes abit over or under the player, depends on the situation
      Have to fix that!
      Thanks anyways...

      but still doesnt kno why you said fov[0] = tan(theValue)

    9. #9
      Nick
      Learning to hack games!
       
      Feeling Normal
       
      ndani14's Avatar
      Join Date
      Aug 2012
      Location
      Australia
      Posts
      53
      Thanks (-->)
      11
      Thanks (<--)
      25
      Silent VPN
      Quote Originally Posted by j3b View Post
      but still doesnt kno why you said fov[0] = tan(theValue)
      it's to do with the perspective equation, if you look at the site i linked earlier the S = 1 / tan(fov * 0.5 * pi/180) [if fov is in degrees]
      my bad i forgot the divide by 2 :P silly me

      maybe try (fov in degrees)
      fov[0] = tan(fov * 0.5 * PI/180.0)*(screen_width*1.0/screen_height)
      fov[1] = tan(fov * 0.5 * PI/180.0)

      anyway good luck

    Similar Game Hacker Threads

    1. [Discuss] World2Screen function
      By [GH]Rake in forum ESP - WorldToScreen - ViewMatrix
      Replies: 13
      Last Post: 07-27-2017, 05:58 PM
    2. [Help] World2Screen issues
      By Kroopy in forum Assault Cube Hacks
      Replies: 3
      Last Post: 02-03-2016, 09:49 PM
    3. [Help] CSGO World2Screen (C#)
      By Luciz in forum Hacking Help
      Replies: 3
      Last Post: 07-16-2014, 07:41 AM
    4. CSS World2Screen
      By brinkz in forum Counter-Strike: Source Hacks
      Replies: 15
      Last Post: 03-21-2013, 12:41 PM

    Tags for this Thread