QuestionHelpVehicle Aimbot

Posts 16 of 6 · Page 1 of 1
Vehicle Aimbot
Its possible, but, I know 0 about C++.
I was wondering if someone could help me compile one.
I have the source code and the aimbot math.
Thanks in advance.
I don't recommend you to start with that kinds of hacks if you don't have any C++ knowledge.
You can post the code here, I'll try to help you, tho.
Quote Originally Posted by Lovroman View Post
I don't recommend you to start with that kinds of hacks if you don't have any C++ knowledge.
You can post the code here, I'll try to help you, tho.
Well, knock yourself out.
This is Dudeinberlin's code.


Keep me updated on this, sounds fun c:
Forgot to post the code. Baka R8.
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;
}
some pointers

Code:
Vec3 Origin    = GameRenderer->Singleton()->m_viewParams.firstPersonTransform.trans;
Vec3 Left    = GameRenderer->Singleton()->m_viewParams.firstPersonTransform.left;
Vec3 Up        = GameRenderer->Singleton()->m_viewParams.firstPersonTransform.up;

the function itself
Code:
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;
    
    if(MyPlayer->isInVehicle())
    {
    //don't forget to norm the delta for the coming calculations
            dt.normalize();
        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 know 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;
;
If you learn C++ you will know how to do this!!
Posts 16 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?