Results 1 to 15 of 21

Threaded View

  1. #1
    Masterycon's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    0
    Reputation
    10
    Thanks
    3
    My Mood
    Asleep

    Smile Vehicle Aimbot (Jet,Heli)Source Code

    Code:
    //add this to your vec3 class. or to your physiycs class if you have one. or rewrite it and just add it to your hack
    //you will need a dotproduct function
    float Vec3::AimFloat(Vec3 &delta, const float &FOV) const
    {
    	return asinf(this->dot(delta)) / FOV;
    }
    
    Code:
    //some pointers
    Vec3 Origin	= GameRenderer->Singleton()->m_viewParams.firstPersonTransform.trans;
    Vec3 Left	= GameRenderer->Singleton()->m_viewParams.firstPersonTransform.left;
    Vec3 Up		= GameRenderer->Singleton()->m_viewParams.firstPersonTransform.up;
    
    
    Code:
    //the function itself
    BOOL Rotation() // Fragger aka dudeinberlin
    {
    	float flYaw	,flPitch,flRoll;
    	//TargetArray is the final target vector, this will differ for your hack. i store my targetvecs in an array, hence i can call this rotation function without any params.
    	Vec3 dt = TargetArray() - Origin;
    	//don't forget to norm the delta for the coming calculations
    	dt.normalize();
    	
    	if(MyPlayer->isInVehicle())
    	{
    		flYaw   = Left.AimFloat(dt,GameRenderer->Singleton()->m_viewParams.view.m_fovX / 2.0f);
    		flPitch = Up.AimFloat(dt,GameRenderer->Singleton()->m_viewParams.view.m_fovX / 2.0f);	
    		flRoll  = flYaw;
    		//ya ya, how to now if your a jet or heli? search the ucforum
    		//flVehicleSens is dynamic in my hack. best Results with a very low sens of 8.0 or lower
    		if(bImaJet||bImAHeli)
    			flInputAction[ConceptPitch] = -flPitch * flVehicleSens;
    		else
    			flInputAction[ConceptPitch] = flPitch * flVehicleSens;
    		flInputAction[ConceptYaw]	= flYaw	* flVehicleSens;	
    		flInputAction[ConceptRoll]  = flRoll* flVehicleSens;
    		
    		if(bFire)
    			AutoFireLogic();
    		return TRUE;
    	}
    	else
    	{
    		//tada you should know this.
    	}
    	return FALSE;
    }
    Last edited by Mayion; 10-26-2013 at 03:38 PM. Reason: Adding Code Tags

  2. The Following User Says Thank You to Masterycon For This Useful Post:

    mrpijus123 (10-31-2014)

Similar Threads

  1. [Outdated] C++ ESP AIMBOT MULTI HACK SOURCE CODE
    By HOOSIER in forum Alliance of Valiant Arms (AVA) Coding / Source Code
    Replies: 51
    Last Post: 01-06-2013, 02:14 PM
  2. Visual Basic Aimbot Source Code
    By whitten in forum Visual Basic Programming
    Replies: 19
    Last Post: 08-05-2009, 10:39 AM
  3. My Aimbot source code!
    By wertoskiller in forum Combat Arms Hacks & Cheats
    Replies: 8
    Last Post: 07-27-2009, 04:46 PM
  4. vb AImbot! No tut only source code!
    By reversflux in forum Visual Basic Programming
    Replies: 6
    Last Post: 07-20-2009, 10:07 AM
  5. Exteel Aimbot Script Source Code
    By Trip-FX in forum General Game Hacking
    Replies: 15
    Last Post: 05-21-2009, 01:09 PM