Thread: 2D Radar + Sc

Results 1 to 8 of 8
  1. #1
    xbeatsszzx's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Behind a dumpster jerking off. xD jks
    Posts
    2,519
    Reputation
    13
    Thanks
    1,508
    My Mood
    Asleep

    2D Radar + Sc

    its basic but very well working radar, same method like old engines ( dont see why code would be any different but variables ).

    Code:
    void PlayersToRadar(dice::ClientPlayer* TargetPlayer)
    {
        float RadarPos_X = ScreenWidth/2 - 500.0;
        float RadarPos_Y = ScreenHeight/2 - 100;
    
        float RadarSizeX = 180.0;
        float RadarSizeY = 180.0;
    
        float Middle_X = RadarPos_X+90;
        float Middle_Y = RadarPos_Y+90;
    
        D3DXVECTOR3 RadarPOS;
        GetZ(&RadarPOS, g_pLocalPlayer->GetParent()->GetPlayerMatrix() );
    
        DrawRect(RadarPos_X, RadarPos_Y, RadarSizeX + 1, RadarSizeY + 1, D3DCOLOR_ARGB(255,0,0,255));
        FillRectD3D( RadarPos_X ,RadarPos_Y,RadarSizeX,RadarSizeY,D3DCOLOR_ARGB( 10, 112, 112, 112 ));
        FillRectD3D( RadarPos_X,RadarPos_Y+90,RadarSizeX,1,D3DCOLOR_ARGB(255,0,0,255));//x line
        FillRectD3D( RadarPos_X+90,RadarPos_Y,1,RadarSizeY,D3DCOLOR_ARGB(255,0,0,255));//y line
    
        D3DXVECTOR3 OrigToRadar;
    
        GetOrigin(&OrigToRadar, TargetPlayer->GetParent()->GetPlayerMatrix());
    
        float drawx = ( OrigToRadar.x - g_pLocalPlayer->GetParent()->GetPlayerMatrix()->_41 ) / 2;
        float drawy = ( OrigToRadar.z - g_pLocalPlayer->GetParent()->GetPlayerMatrix()->_43 ) / 2;
    
        float first_yaw;
    
        if (RadarPOS.z == 0 && RadarPOS.x == 0)
        {
            first_yaw = 0;
        }
        else
        {
            first_yaw = (atan2(RadarPOS.z, -RadarPOS.x) * 180 / M_PI);
            if (first_yaw < 0)
                first_yaw += 360;
        }
    
        float yaw = ((first_yaw) * (M_PI*2 / 360));
    
        float rotx = drawy * cos(yaw) + drawx * sin(yaw);
        float roty = drawx * cos(yaw) - drawy * sin(yaw);
    
        RadarPOS.x += Middle_X;
        RadarPOS.y += Middle_Y;
    
        if(RadarPOS.x + rotx-2 < RadarPos_X)                    return;
        else if(RadarPOS.x + rotx+2 > (RadarPos_X+160) )        return;
        if(RadarPOS.y + roty-2 < RadarPos_Y)                    return;
        else if(RadarPOS.y + roty+2 > (RadarPos_Y+160) )        return;
    
        BOOL ISVIS = IsVisible(&OrigToRadar, 0x7A);
        
        D3DCOLOR EtagColor = ISVIS ? D3DCOLOR_ARGB(255,0,50,255) : D3DCOLOR_ARGB(255,50,255,0);
        
        FillRectD3D(RadarPOS.x + rotx-2, RadarPOS.y + roty-2, 4, 4, EtagColor );
    }
    then i just call it in my esp code after loop and valid and isenemychecks

    PlayersToRadar( pTargetPlayer );

    result from the above code looks exact like this
    Screen:


    credits:
    Haxing4Life
    sfab1
    I Am on this site for the mods for mw2 ONLY. Not hacks.

  2. The Following 2 Users Say Thank You to xbeatsszzx For This Useful Post:

    sun117 (06-22-2012),wibrator111 (06-01-2011)

  3. #2
    rovald's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Canada, Québec
    Posts
    202
    Reputation
    1
    Thanks
    10
    My Mood
    Angry
    post the hack? is it bannable?

  4. #3
    bullpop's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Sweden
    Posts
    3,692
    Reputation
    287
    Thanks
    2,196
    My Mood
    Amused
    is it detected or undetected? o.o

    Great work anyways cheers
    MPGH Member Since 10/17/2010
    Battlefield Minion Since 01/22/2014 till - 08/27/2014
    APB Minion since 11/12/2011 till 4/16/2012

  5. #4
    huhula96's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Germany
    Posts
    103
    Reputation
    5
    Thanks
    11
    My Mood
    Cheerful
    pls compile it to a .exe or .dll Thx i cant compile it i dont know why Oo

  6. #5
    no1joey's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    3
    yeah if ur guna release shit at least make it usable wtf am i supposed to do with that ???

  7. The Following User Says Thank You to no1joey For This Useful Post:

    RileX (05-30-2011)

  8. #6
    RileX's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    60
    Reputation
    10
    Thanks
    1
    My Mood
    Yeehaw
    Quote Originally Posted by no1joey View Post
    yeah if ur guna release shit at least make it usable wtf am i supposed to do with that ???
    Goes around and says he helps us, but when we ask for help he turns us down and we get ignored.

  9. #7
    kU$h3D!'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    reEfeRs1dE,s0caL
    Posts
    42
    Reputation
    10
    Thanks
    0
    My Mood
    Dead
    l0l!poor noobz...

  10. #8
    Karleo's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    CA
    Posts
    524
    Reputation
    24
    Thanks
    82
    Quote Originally Posted by no1joey View Post
    yeah if ur guna release shit at least make it usable wtf am i supposed to do with that ???
    What your supposed to do is not be a horrible leecher and learn to compile, shits not rocket science. What he posted is very useful, just don't be such an idiot and you'll find out.