Perfect Triggerbot

Posts 1–11 of 11 · Page 1 of 1
Perfect Triggerbot
Since we know after cod4 the crosshairclientnum from cg don't counts on higher distance we need to use something more tricky.

Code:
void (*CG_Trace)(Trace* Trace, vec3_t Start, vec3_t End, int skipNumber, int mask, int a6, int a7) = (void (__cdecl *)(Trace* , vec3_t , vec3_t , int , int , int , int ))0x00438A60;

struct Trace
{
     char              z_crap[16];
    float              fraction;
    char              z_crap2[8];
    WORD              solid;
    WORD                 allsolid;
    int               entityNum;
    int               unknow;
    char              z_crap3[68];
};

int  (__cdecl *k_AttackOn)() = (int (__cdecl *)())0x7FCF60;
int  (__cdecl *k_AttackOff)() = (int (__cdecl *)())0x7FD030;

Trace        crosshair_trace;

int CAimbot::ScanCrosshairEntity( )
{
    vec3_t angle, end;
 
    VectorCopy( cg->refdef.Location, angle);
    VectorMA( angle, 131072, cg->refdef.ViewAxis[0], end );
    
    CG_Trace( &crosshair_trace, angle, end, 0, 0x280B001, 0, 0 );  

    if(crosshair_trace.entityNum < 32 )
    {
        return crosshair_trace.entityNum;
    }
    return -1;
}

bool CAimbot::TriggerBot( )
{
    int CrosshairClient = ScanCrosshairEntity( );
    
    static int lastShotTime = 0;  
    
    int GetTick = GetTickCount( );
    
    if(ClientInfo[CrosshairClient].Team != ClientInfo[ PlayerSnap->clientNum ].Team || ClientInfo[CrosshairClient].Team == TEAM_FREE)  
    {
        if ( !lastShotTime && CrosshairClient >=0 )
        {
            lastShotTime = GetTick;
            
            k_AttackOn( );
            
            return true;
        }
        else if(GetTick - lastShotTime > 100   )
        {
            lastShotTime = 0;
            
            k_AttackOff( );
            
            return false;
        }    
        else  if (lastShotTime != 0)
        {
            return true;
        }
    }
    return false;
}
credits goes to Tamimego and the quake sdk like always.
ummm i love how ur a newb here (the tag) and in uc ur a god
lolz nice post thanks just waht i was looking for +plus a good name
Quote Originally Posted by ^...,^ View Post
ummm i love how ur a newb here (the tag) and in uc ur a god
lolz nice post thanks just waht i was looking for +plus a good name
Because he doesn't spam like us duh
Quote Originally Posted by JuGGeR-NaUgHt View Post
Where am I meant to put this?
in a txt file , than just load black ops and u have an undetectable trigger bot
Quote Originally Posted by killstreak View Post
in a txt file , than just load black ops and u have an undetectable trigger bot
you joking or serious?..
Quote Originally Posted by Skyline. View Post
you joking or serious?..
Do you really have to ask?
Why bother asking if you don't know reverse engineering and C++?
thanks for the info sir
ok ive stablished that its suposed 2 be in a txt file (DUH) but where do i put the text file ?
soz 4 being a noob
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us