Advertisement
Mango_Knife

Black Ops 2 - Give Killstreaks Client [1.18 - C#]

Jun 26th, 2014
771
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.09 KB | None | 0 0
  1.             public static void Give(Int32 Client, Byte[] Streak)
  2.             {
  3.                 Byte[] On = new Byte[] { 1 };
  4.                 //1 - Enable Streak
  5.                 //0 - Take it off
  6.                 UInt32 G_ClientSize = 0x5808;
  7.                 UInt32 Index = (UInt32)Client * G_ClientSize;
  8.                 //Give the streak to whatever Killstreak you want
  9.                 //1,2 or 3
  10.                 //Then Enable it, so it wont be blank, in case the client didnt choosed scorestreaks
  11.                 //So:
  12.                 PS3.SetMemory(Enable_1 + Index, On);//Enable Streak
  13.                 //Give Streak:
  14.                 PS3.SetMemory(Killstreak_1 + Index, Streak);
  15.                 PS3.SetMemory(Change_1 + Index, Streak);
  16.                 //We will change 2 Offsets, otherwise it will not work.
  17.                 //And then, just give the scorestreak:
  18.                 PS3.SetMemory(Scorestreak_1 + Index, On);
  19.             }
  20.             public static void Test()
  21.             {
  22.                 //Server Details Function: http://pastebin.com/ptrKussv
  23.                 if (getMapName() == "Nuketown 2025")
  24.                 {
  25.                     Give(0, Streaks.Nuketown.RCXD);
  26.                 }
  27.                 else
  28.                 {
  29.                     Give(0, Streaks.OtherMaps.RCXD);
  30.                 }
  31.             }
  32.             //1.18 G_Client = 0x1780F28 (Thanks to Sharks)
  33.             private static UInt32 G_Client = 0x1780F28;
  34.             private static UInt32 Change_1 = G_Client + 0x283;
  35.             private static UInt32 Change_2 = G_Client + 0x29F;
  36.             private static UInt32 Change_3 = G_Client + 0x267;
  37.  
  38.             private static UInt32 Scorestreak_1 = G_Client + 0x433;
  39.             private static UInt32 Scorestreak_2 = G_Client + 0x437;
  40.             private static UInt32 Scorestreak_3 = G_Client + 0x42F;
  41.  
  42.             private static UInt32 Enable_1 = G_Client + 0x55F;
  43.             private static UInt32 Enable_2 = G_Client + 0x557;
  44.             private static UInt32 Enable_3 = G_Client + 0x553;
  45.  
  46.             private static UInt32 Killstreak_1 = G_Client + 0x56F;
  47.             private static UInt32 Killstreak_2 = G_Client + 0x567;
  48.             private static UInt32 Killstreak_3 = G_Client + 0x563;
  49.             //Streaks:
  50.             public class Streaks
  51.             {
  52.                 public static class Nuketown
  53.                 {
  54.                     public static Byte[]
  55.                      UAV = new Byte[] { 0x80 },
  56.                      RCXD = new Byte[] { 0x94 },
  57.                      HunterKiller = new Byte[] { 0x8F },
  58.                      CarePackage = new Byte[] { 0x7A },
  59.                      CounterUAV = new Byte[] { 0x81 },
  60.                      Guardian = new Byte[] { 0xA4 },
  61.                      HellstormMissile = new Byte[] { 0x97 },
  62.                      LightningStrike = new Byte[] { 0x92 },
  63.                      SentryGun = new Byte[] { 0xA2 },
  64.                      DeathMachine = new Byte[] { 0x58 },
  65.                      WarMachine = new Byte[] { 0x53 },
  66.                      DragonFire = new Byte[] { 0x9B },
  67.                      AGR = new Byte[] { 0x7F },
  68.                      StealthChopper = new Byte[] { 0x87 },
  69.                      OrbitalVSAT = new Byte[] { 0x82 },
  70.                      EscortDrone = new Byte[] { 0x88 },
  71.                      EMPSystems = new Byte[] { 0x83 },
  72.                      Warthog = new Byte[] { 0x9E },
  73.                      Loadstar = new Byte[] { 0x99 },
  74.                      VTOLWarship = new Byte[] { 0x89 },
  75.                      K9Unit = new Byte[] { 0x6F },
  76.                      Swarm = new Byte[] { 0x91 };
  77.                 }
  78.                 public static class OtherMaps
  79.                 {
  80.                     //On other maps its -0x1 from the bytes on nuketown2025
  81.                     public static Byte[]
  82.                      UAV = new Byte[] { 0x80 -0x1},
  83.                      RCXD = new Byte[] { 0x94 -0x1},
  84.                      HunterKiller = new Byte[] { 0x8F -0x1},
  85.                      CarePackage = new Byte[] { 0x7A -0x1},
  86.                      CounterUAV = new Byte[] { 0x81 -0x1},
  87.                      Guardian = new Byte[] { 0xA4 -0x1},
  88.                      HellstormMissile = new Byte[] { 0x97 -0x1},
  89.                      LightningStrike = new Byte[] { 0x92 -0x1},
  90.                      SentryGun = new Byte[] { 0xA2 -0x1},
  91.                      DeathMachine = new Byte[] { 0x58 -0x1},
  92.                      WarMachine = new Byte[] { 0x53 -0x1},
  93.                      DragonFire = new Byte[] { 0x9B -0x1},
  94.                      AGR = new Byte[] { 0x7F -0x1},
  95.                      StealthChopper = new Byte[] { 0x87 -0x1},
  96.                      OrbitalVSAT = new Byte[] { 0x82 -0x1},
  97.                      EscortDrone = new Byte[] { 0x88 -0x1},
  98.                      EMPSystems = new Byte[] { 0x83 -0x1},
  99.                      Warthog = new Byte[] { 0x9E -0x1},
  100.                      Loadstar = new Byte[] { 0x99 -0x1},
  101.                      VTOLWarship = new Byte[] { 0x89 -0x1},
  102.                      K9Unit = new Byte[] { 0x6F -0x1},
  103.                      Swarm = new Byte[] { 0x91 -0x1};
  104.                 }
  105.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement