Advertisement
Deji

Square Radar

Jul 24th, 2011
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.14 KB | None | 0 0
  1. if(SquareRadar && !RadarIsSquare)
  2. {
  3.     RADAR_fCirc = 0;
  4.     patch(0x585721, 0.5, 4);
  5.     patch(0x585729, 0.5, 4);
  6.     patch(0x585731, 0.5, 4);
  7.     patch(0x585739, 0.5, 4);
  8.     patch(0x585719, -0.5, 4);
  9.     patch(0x585741, -0.5, 4);
  10.     patch(0x585749, -0.5, 4);
  11.     patch(0x585751, -0.5, 4);
  12.     patch(0x58A81F, &HudTextures[TEXTURE_RadarSquare], 4);
  13.     patch(0x58A8C9, &HudTextures[TEXTURE_RadarSquare], 4);
  14.     patch(0x58A973, &HudTextures[TEXTURE_RadarSquare], 4);
  15.     patch(0x58AA21, &HudTextures[TEXTURE_RadarSquare], 4);
  16.  
  17.     patch(0x588162, (DWORD)&BoundRadarIconPos - 0x588166, 4);
  18.     patch(0x587222, (DWORD)&BoundRadarIconPos - 0x587226, 4);
  19.     patch(0x587605, (DWORD)&BoundRadarIconPos - 0x587609, 4);
  20.     patch(0x587990, (DWORD)&BoundRadarIconPos - 0x587994, 4);
  21.     patch(0x586E98, (DWORD)&BoundRadarIconPos - 0x586E9C, 4);
  22.     patch(0x58585C, &RADAR_fCirc, 4);
  23. }
  24. else if(!SquareRadar && RadarIsSquare)
  25. {
  26.     RADAR_fCirc = (float)0.2617994;
  27.     patch(0x585721, 1.0, 4);
  28.     patch(0x585729, 1.0, 4);
  29.     patch(0x585731, 1.0, 4);
  30.     patch(0x585739, 1.0, 4);
  31.     patch(0x585719, (DWORD)-1.0, 4);
  32.     patch(0x585741, (DWORD)-1.0, 4);
  33.     patch(0x585749, (DWORD)-1.0, 4);
  34.     patch(0x585751, (DWORD)-1.0, 4);
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement