• 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 3 123 LastLast
    Results 1 to 10 of 23

    Thread: Aimbot angles

    1. #1
      Hacker
      ^.^
       
      Eating
       
      NTvalk's Avatar
      Join Date
      Jul 2013
      Location
      Your RAM
      Posts
      512
      Thanks (-->)
      176
      Thanks (<--)
      146

      Aimbot angles

      Silent VPN
      Hey im currently using this function

      Code:
      void CMaths::CalcAngles(const vec3_t &source, const vec3_t &dest, vec3_t &ang)
      {
      	double delta[3] = { (source[0] - dest[0]), (source[1] - dest[1]), (source[2] - dest[2]) };
      	double hyp = sqrt(delta[0] * delta[0] + delta[1] * delta[1]);
      	ang[0] = (float)(atan(delta[2] / hyp) * RADPI);
      	ang[1] = (float)(atan(delta[1] / delta[0]) * RADPI);
      	ang[2] = 0.0f;
      	if (delta[0] >= 0.0f)
      		ang[0] += 180.0f;
      
      }
      to calulate the angles between 2 players, but it doesnt give me the right angles, any ideas?

    2. #2
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      492
      What values does this give for you, tried outputting those? Sure you are writing those values to the right location?
      Aimbot angles

    3. #3
      Hacker
      ^.^
       
      Eating
       
      NTvalk's Avatar
      Join Date
      Jul 2013
      Location
      Your RAM
      Posts
      512
      Thanks (-->)
      176
      Thanks (<--)
      146
      Quote Originally Posted by c5 View Post
      What values does this give for you, tried outputting those? Sure you are writing those values to the right location?
      I'm not writing yet, just outputting it:

      EDIT: the output of the X-angles gives me the distance between me and the enemy..
      Last edited by NTvalk; 11-03-2013 at 05:32 AM.

    4. #4
      Hacker
      ^.^
       
      Eating
       
      NTvalk's Avatar
      Join Date
      Jul 2013
      Location
      Your RAM
      Posts
      512
      Thanks (-->)
      176
      Thanks (<--)
      146
      also when i use

      Code:
      void CMaths::GetAngleToTarget(vec3_t vTarget, vec3_t source, vec3_t vAngles)
      {
      	vec3_t deltaVec;
      	deltaVec[0] = vTarget[0] - source[0];
      	deltaVec[1] = vTarget[1] - source[1];
      	deltaVec[2] = vTarget[2] - source[2];
      
      	VectorAngles(deltaVec, vAngles);
      
      	if (vAngles[0] > 180.0f)
      		vAngles[0] -= 360.0f;
      	else if (vAngles[0] <-180.0f)
      		vAngles[0] += 360.0f;
      
      	if (vAngles[1] > 180.0f)
      		vAngles[1] -= 360.0f;
      	else if (vAngles[1] < -180.0f)
      		vAngles[1] += 360.0f;
      }
      i get vAngles[0] as the distance between me and the enemy :O there must be something wrong with my input...

    5. #5
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      492
      Quote Originally Posted by NTvalk View Post
      also when i use

      Code:
      void CMaths::GetAngleToTarget(vec3_t vTarget, vec3_t source, vec3_t vAngles)
      {
      	vec3_t deltaVec;
      	deltaVec[0] = vTarget[0] - source[0];
      	deltaVec[1] = vTarget[1] - source[1];
      	deltaVec[2] = vTarget[2] - source[2];
      
      	VectorAngles(deltaVec, vAngles);
      
      	if (vAngles[0] > 180.0f)
      		vAngles[0] -= 360.0f;
      	else if (vAngles[0] <-180.0f)
      		vAngles[0] += 360.0f;
      
      	if (vAngles[1] > 180.0f)
      		vAngles[1] -= 360.0f;
      	else if (vAngles[1] < -180.0f)
      		vAngles[1] += 360.0f;
      }
      i get vAngles[0] as the distance between me and the enemy :O there must be something wrong with my input...
      Show your VectorAngles
      Aimbot angles

    6. #6
      Hacker
      ^.^
       
      Eating
       
      NTvalk's Avatar
      Join Date
      Jul 2013
      Location
      Your RAM
      Posts
      512
      Thanks (-->)
      176
      Thanks (<--)
      146
      Code:
      vec3_t, aimAngles;
      ...
      if(enemy...){
      esp.fenemydistance = maths.SubVectorDist(esp.validClients[i], esp.myInfo) / 47;        // this gives the distance well
      maths.GetAngleToTarget (esp.myInfo.vpos,esp.validClients[i].vpos, aimAngles);         // this gives me the wrong x angle
      printf("aim x : %f\n", aimAngles[0]);
      }
      and this is my vpos
      Code:
              myInfo.posx = *(float*)(0x797618);
      	myInfo.posy = *(float*)(0x79761C);
      	myInfo.posz = *(float*)(0x797620);
      
      ...
      
      	myInfo.vpos[0] = myInfo.posx;
      	myInfo.vpos[1] = myInfo.posy;
      	myInfo.vpos[2] = myInfo.posz;

    7. #7
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      492
      Quote Originally Posted by NTvalk View Post
      Code:
      esp.fenemydistance = maths.SubVectorDist(esp.validClients[i], esp.myInfo) / 47;        // this gives the distance well
      maths.GetAngleToTarget (esp.myInfo.vpos,esp.validClients[i].vpos, aimAngles);         // this gives me the wrong x angle
      I have no idea what you are doing.
      Aimbot angles

    8. #8
      Hacker
      ^.^
       
      Eating
       
      NTvalk's Avatar
      Join Date
      Jul 2013
      Location
      Your RAM
      Posts
      512
      Thanks (-->)
      176
      Thanks (<--)
      146
      Quote Originally Posted by c5 View Post
      I have no idea what you are doing.
      Code:
       esp.validClients[i].vpos
      is a vec3_t of the coordinates of the enemy
      and

      Code:
       esp.myInfo.vpos
      are my coordinates

    9. #9
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      492
      Quote Originally Posted by NTvalk View Post
      Code:
       esp.validClients[i].vpos
      is a vec3_t of the coordinates of the enemy
      and

      Code:
       esp.myInfo.vpos
      are my coordinates
      Obviously, got that part, but this:

      Code:
      esp.fenemydistance = maths.SubVectorDist(esp.validClients[i], esp.myInfo) / 47;        // this gives the distance well
      maths.GetAngleToTarget (esp.myInfo.vpos,esp.validClients[i].vpos, aimAngles);         // this gives me the wrong x angle
      and I asked could you show me your VectorAngles
      Aimbot angles

    10. #10
      Hacker
      ^.^
       
      Eating
       
      NTvalk's Avatar
      Join Date
      Jul 2013
      Location
      Your RAM
      Posts
      512
      Thanks (-->)
      176
      Thanks (<--)
      146
      Silent VPN
      Quote Originally Posted by c5 View Post
      Obviously, got that part, but this:



      and I asked could you show me your VectorAngles
      Ohh i see sorry, you mean this function?
      Code:
      void CMaths::VectorAngles(const vec3_t value1, vec3_t angles) {
      	float flTmp, flYaw, flPitch;
      	if (value1[2] == 0 && value1[0] == 0)
      	{
      		flYaw = 0;
      		flPitch = 270;
      	}
      	else
      	{
      		flYaw = (atan2(value1[2], -value1[0]) * 180.f / 3.14159265358979323846) - 180.f;
      		if (flYaw < 0)
      		{
      			flYaw += 360.f;
      		}
      
      		flTmp = sqrt(value1[0] * value1[0] + value1[2] * value1[2]);
      		flPitch = (atan2(value1[1], flTmp) * 180.f / 3.14159265358979323846);
      
      		if (flPitch < 0)
      		{
      			flPitch += 360.f;
      		}
      	}
      	angles[0] = flPitch;
      	angles[1] = flYaw;
      	angles[2] = 0;
      }

    Page 1 of 3 123 LastLast

    Similar Game Hacker Threads

    1. [VideoTutorial] C# How to Hack Any Game AssaultCube AIMBOT Tutorial DIFFICULTY [6/10]
      By Fleep in forum GH Hack Video Tutorials
      Replies: 110
      Last Post: 10-24-2016, 05:37 PM
    2. [Help] Can't figure out how to get angles in degree
      By B14CKS1D3 in forum Hacking Help
      Replies: 6
      Last Post: 04-15-2016, 05:11 PM
    3. [Help] Subtracting angles and normalizing them
      By [GH]Rake in forum Aimbot - EntityList
      Replies: 3
      Last Post: 04-15-2016, 10:03 AM
    4. [Help] AxisAngles vs Eular Angles?
      By [GH]Rake in forum Hacking Help
      Replies: 2
      Last Post: 03-04-2016, 06:14 PM
    5. Fixing movement after changing angles in usercmd
      By norgor in forum Hacking Help
      Replies: 4
      Last Post: 09-10-2014, 11:45 AM

    Tags for this Thread