Engine Radar Overlay
Cypher Presents showed a method on how to draw your own radar
Well what he did was recreating the overlay by using drawrotatedpic
and i thought by myself this could be done easier. So here it is.

Credits:
CypherPresents
King Orgy aka heimwerker
Smoochy
Code:
class CRadarHud
{
public:
float x; //0x0000
float y; //0x0004
float w; //0x0008
float h; //0x000C
char _0x0010[12];
};
CRadarHud radarhud;
radarhud.x = x;
radarhud.y = y;
radarhud.w = w;
radarhud.h = h;
DrawEngineRadar( 0 , 0 , 0 , &radarhud, &whiteshader, color);
and i thought by myself this could be done easier. So here it is.
Code:
typedef void (__cdecl* DrawEngineRadar_ )( int a1, int a2, int a3, CRadarHud* radar, int shader, Vec4 color ); DrawEngineRadar_ DrawEngineRadar = ( DrawEngineRadar_ )0x4DE9C0; typedef void (__cdecl* OverlayPackage_ )( int a1, int a2, int a3, CRadarHud* radar, int shader, Vec4 color ); OverlayPackage_ OverlayPackage = ( OverlayPackage_ )0x4450A0; typedef void (*OverlayEnemy_)(int a1, int a2, int a3, CRadarHud* hud, Vec4 col); OverlayEnemy_ OverlayEnemy = (OverlayEnemy_)0x47F690; typedef void (*OverlayFriendly_)(int a1, int a2, int a3, CRadarHud* hud, Vec4 col); OverlayFriendly_ OverlayFriendly = (OverlayFriendly_)0x508B40; typedef void (*OverlayTurret_)(int a1, int a2, int a3, CRadarHud* hud, Vec4 col); OverlayTurret_ OverlayTurret = (OverlayTurret_)0x4A5270; typedef void (*OverlayHeli_)(int a1, int a2, int a3, CRadarHud* hud, Vec4 col); OverlayHeli_ OverlayHeli = (OverlayHeli_)0x459130; typedef void (*OverlayLocal_)(int a1, int a2, int a3, CRadarHud* hud, Vec4 col); OverlayLocal_ OverlayLocal = (OverlayLocal_)0x417570; typedef void (*OverlayPlane_)(int a1, int a2, int a3, CRadarHud* hud, Vec4 col); OverlayPlane_ OverlayPlane = (OverlayPlane_)0x4906C0;
Code:
DrawEngineRadar(0, 0, 0, &radarhud, Register.White, cWhite); OverlayPackage(0, 0, 0, &radarhud, Register.White, cWhite); OverlayEnemy(0, 0, 0, &radarhud, cWhite); OverlayFriendly(0, 0, 0, &radarhud, cWhite); OverlayLocal(0, 0, 0, &radarhud, cWhite); OverlayHeli(0, 0, 0, &radarhud, cWhite); OverlayPlane(0, 0, 0, &radarhud, cWhite); OverlayTurret(0, 0, 0, &radarhud, cWhite);

Credits:
CypherPresents
King Orgy aka heimwerker
Smoochy



