2D Radar + Sc

Posts 1–8 of 8 · Page 1 of 1
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
post the hack? is it bannable?
is it detected or undetected? o.o

Great work anyways cheers
pls compile it to a .exe or .dll Thx i cant compile it i dont know why Oo
yeah if ur guna release shit at least make it usable wtf am i supposed to do with that ???
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.
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.
l0l!poor noobz...
Posts 1–8 of 8 · Page 1 of 1
This thread is closed for replies.
Talk with us