Advertisement
Mango_Knife

Set Bullet Type - Black Ops 2 - 1.17

Apr 9th, 2014
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.59 KB | None | 0 0
  1.  
  2.  
  3. public static class PrivateMatch
  4. {
  5. //Set Bullets Type Black Ops 2 - 1.17
  6. #region Set BulletType
  7. public static class SetBullet
  8. {
  9. public static uint Offset_1 = 0x178136F;
  10. public static uint Offset_2 = Offset_1 - 0xC;
  11. public static uint Offset_3 = Offset_1 - 0x4;
  12. public static uint Offset_4 = Offset_1 - 0x170;
  13. public static uint Offset_5 = Offset_1 - 0x18C;
  14. public static uint Offset_6 = Offset_1 - 0xD;
  15. public static PS3API PS3 = new PS3API();
  16. public static void SetMemoryClient(UInt32 Offset, Byte[] bytesm, UInt32 clientIndex)
  17. {
  18. PS3.SetMemory(Offset + (clientIndex * 0x5808), bytesm);
  19. }
  20. public static void GetMemoryClient(UInt32 Offset, byte[] buffer, UInt32 clientIndex)
  21. {
  22. PS3.GetMemory(Offset + (clientIndex * 0x5808), buffer);
  23. }
  24.  
  25. public static byte[] GetBytes(string str)
  26. {
  27. byte[] bytes = new byte[str.Length * sizeof(char)];
  28. System.Buffer.BlockCopy(str.ToCharArray(), 0, bytes, 0, bytes.Length);
  29. return bytes;
  30. }
  31. public static void removenades(uint ClientIndex)
  32. {
  33. byte[] sky = new byte[] { 0x00 };
  34. PS3.SetMemory((Offset_1) + (ClientIndex * 0x5808), sky);
  35.  
  36. byte[] sky1 = new byte[] { 0x00 };
  37. PS3.SetMemory((Offset_2) + (ClientIndex * 0x5808), sky1);
  38.  
  39. }
  40.  
  41. public static void removenades1(uint ClientIndex)
  42. {
  43. byte[] sky = new byte[] { 0x00 };
  44. PS3.SetMemory((Offset_3) + (ClientIndex * 0x5808), sky);
  45. }
  46.  
  47. public static void BulletType(int clientIndex, String BulletType)
  48. {
  49. removenades((uint)clientIndex);
  50. removenades1((uint)clientIndex);
  51. Byte[] OldWeap = new Byte[1];
  52. if (BulletType == "None")
  53. SetMemoryClient(Offset_4, OldWeap, (UInt32)clientIndex);
  54. if (BulletType != "None" && count1 == 0)
  55. {
  56. GetMemoryClient(Offset_4, OldWeap, (UInt32)clientIndex);
  57. count1++;
  58. }
  59. byte[] Bullet;
  60. SetMemoryClient(Offset_4, new Byte[1], (UInt32)clientIndex);
  61. Thread.Sleep(20);
  62.  
  63. switch (BulletType)
  64. {
  65. case "AGR Gun":
  66. Bullet = new Byte[] { 0x7A };
  67. SetBulletType((int)clientIndex, Bullet);
  68. break;
  69.  
  70. case "Test":
  71. Bullet = new Byte[] { 0xC3 };
  72. SetBulletType((int)clientIndex, Bullet);
  73. break;
  74.  
  75. case "AGR Rocket":
  76. Bullet = new Byte[] { 0x7B };
  77. SetBulletType((int)clientIndex, Bullet);
  78. break;
  79. case "Dragonfire":
  80. Bullet = new Byte[] { 0x99 };
  81. SetBulletType((int)clientIndex, Bullet);
  82. break;
  83. case "Escortdrone":
  84. Bullet = new Byte[] { 0x77 };
  85. SetBulletType((int)clientIndex, Bullet);
  86. break;
  87. case "Guardian":
  88. Bullet = new Byte[] { 0x9F };
  89. SetBulletType((int)clientIndex, Bullet);
  90. break;
  91. case "Hellstorm":
  92. Bullet = new Byte[] { 0x95 };
  93. SetBulletType((int)clientIndex, Bullet);
  94. break;
  95. case "Hunter Killer":
  96. Bullet = new Byte[] { 0x8C };
  97. SetBulletType((int)clientIndex, Bullet);
  98. break;
  99. case "Loadster":
  100. Bullet = new Byte[] { 0x97 };
  101. SetBulletType((int)clientIndex, Bullet);
  102. break;
  103. case "Sentry Gun":
  104. Bullet = new Byte[] { 0x9E };
  105. SetBulletType((int)clientIndex, Bullet);
  106. break;
  107. case "Stealth Chopper":
  108. Bullet = new Byte[] { 0x83 };
  109. SetBulletType((int)clientIndex, Bullet);
  110. break;
  111. case "Swarm":
  112. Bullet = new Byte[] { 0x8F };
  113. SetBulletType((int)clientIndex, Bullet);
  114. break;
  115. case "VTOL Bullet":
  116. Bullet = new Byte[] { 0x89 };
  117. SetBulletType((int)clientIndex, Bullet);
  118. break;
  119. case "VTOL Rocket":
  120. Bullet = new Byte[] { 0x84 };
  121. SetBulletType((int)clientIndex, Bullet);
  122. break;
  123. case "Warthog Bullet":
  124. Bullet = new Byte[] { 0x9B };
  125. SetBulletType((int)clientIndex, Bullet);
  126. break;
  127. case "Warthog Rocket":
  128. Bullet = new Byte[] { 0x9C };
  129. SetBulletType((int)clientIndex, Bullet);
  130. break;
  131. case "Disable":
  132. Bullet = new Byte[] { 0x00 };
  133. SetBulletType((int)clientIndex, Bullet);
  134. break;
  135. }
  136. }
  137. public static void SetBulletType(int clientIndex, Byte[] Bullet)
  138. {
  139. SetMemoryClient(Offset_5, Bullet, (UInt32)clientIndex);
  140. SetMemoryClient(Offset_6, new Byte[] { 0xFF }, (UInt32)clientIndex);
  141. }
  142. }
  143. }
  144. public static class Online
  145. {
  146. #region Set BulletType
  147. public static class SetBullet
  148. {
  149. public static uint Offset_1 = 0x0178136b;
  150. public static uint Offset_2 = Offset_1 - 0xC;
  151. public static uint Offset_3 = Offset_1 - 0x4;
  152. public static uint Offset_4 = Offset_1 - 0x170;
  153. public static uint Offset_5 = Offset_1 - 0x18C;
  154. public static uint Offset_6 = Offset_1 - 0xD;
  155. public static PS3API PS3 = new PS3API();
  156. public static void SetMemoryClient(UInt32 Offset, Byte[] bytesm, UInt32 clientIndex)
  157. {
  158. PS3.SetMemory(Offset + (clientIndex * 0x5808), bytesm);
  159. }
  160. public static void GetMemoryClient(UInt32 Offset, byte[] buffer, UInt32 clientIndex)
  161. {
  162. PS3.GetMemory(Offset + (clientIndex * 0x5808), buffer);
  163. }
  164.  
  165. public static byte[] GetBytes(string str)
  166. {
  167. byte[] bytes = new byte[str.Length * sizeof(char)];
  168. System.Buffer.BlockCopy(str.ToCharArray(), 0, bytes, 0, bytes.Length);
  169. return bytes;
  170. }
  171. public static void removenades(uint ClientIndex)
  172. {
  173. byte[] sky = new byte[] { 0x00 };
  174. PS3.SetMemory((Offset_1) + (ClientIndex * 0x5808), sky);
  175.  
  176. byte[] sky1 = new byte[] { 0x00 };
  177. PS3.SetMemory((Offset_2) + (ClientIndex * 0x5808), sky1);
  178.  
  179. }
  180.  
  181. public static void removenades1(uint ClientIndex)
  182. {
  183. byte[] sky = new byte[] { 0x00 };
  184. PS3.SetMemory((Offset_3) + (ClientIndex * 0x5808), sky);
  185. }
  186.  
  187. public static void BulletType(int clientIndex, String BulletType)
  188. {
  189. removenades((uint)clientIndex);
  190. removenades1((uint)clientIndex);
  191. Byte[] OldWeap = new Byte[1];
  192. if (BulletType == "None")
  193. SetMemoryClient(Offset_4, OldWeap, (UInt32)clientIndex);
  194. if (BulletType != "None" && count1 == 0)
  195. {
  196. GetMemoryClient(Offset_4, OldWeap, (UInt32)clientIndex);
  197. count1++;
  198. }
  199. byte[] Bullet;
  200. SetMemoryClient(Offset_4, new Byte[1], (UInt32)clientIndex);
  201. Thread.Sleep(20);
  202.  
  203. switch (BulletType)
  204. {
  205. case "AGR Gun":
  206. Bullet = new Byte[] { 0x7A };
  207. SetBulletType((int)clientIndex, Bullet);
  208. break;
  209.  
  210. case "Test":
  211. Bullet = new Byte[] { 0xC3 };
  212. SetBulletType((int)clientIndex, Bullet);
  213. break;
  214.  
  215. case "AGR Rocket":
  216. Bullet = new Byte[] { 0x7B };
  217. SetBulletType((int)clientIndex, Bullet);
  218. break;
  219. case "Dragonfire":
  220. Bullet = new Byte[] { 0x99 };
  221. SetBulletType((int)clientIndex, Bullet);
  222. break;
  223. case "Escortdrone":
  224. Bullet = new Byte[] { 0x77 };
  225. SetBulletType((int)clientIndex, Bullet);
  226. break;
  227. case "Guardian":
  228. Bullet = new Byte[] { 0x9F };
  229. SetBulletType((int)clientIndex, Bullet);
  230. break;
  231. case "Hellstorm":
  232. Bullet = new Byte[] { 0x95 };
  233. SetBulletType((int)clientIndex, Bullet);
  234. break;
  235. case "Hunter Killer":
  236. Bullet = new Byte[] { 0x8C };
  237. SetBulletType((int)clientIndex, Bullet);
  238. break;
  239. case "Loadster":
  240. Bullet = new Byte[] { 0x97 };
  241. SetBulletType((int)clientIndex, Bullet);
  242. break;
  243. case "Sentry Gun":
  244. Bullet = new Byte[] { 0x9E };
  245. SetBulletType((int)clientIndex, Bullet);
  246. break;
  247. case "Stealth Chopper":
  248. Bullet = new Byte[] { 0x83 };
  249. SetBulletType((int)clientIndex, Bullet);
  250. break;
  251. case "Swarm":
  252. Bullet = new Byte[] { 0x8F };
  253. SetBulletType((int)clientIndex, Bullet);
  254. break;
  255. case "VTOL Bullet":
  256. Bullet = new Byte[] { 0x89 };
  257. SetBulletType((int)clientIndex, Bullet);
  258. break;
  259. case "VTOL Rocket":
  260. Bullet = new Byte[] { 0x84 };
  261. SetBulletType((int)clientIndex, Bullet);
  262. break;
  263. case "Warthog Bullet":
  264. Bullet = new Byte[] { 0x9B };
  265. SetBulletType((int)clientIndex, Bullet);
  266. break;
  267. case "Warthog Rocket":
  268. Bullet = new Byte[] { 0x9C };
  269. SetBulletType((int)clientIndex, Bullet);
  270. break;
  271. case "Disable":
  272. Bullet = new Byte[] { 0x00 };
  273. SetBulletType((int)clientIndex, Bullet);
  274. break;
  275. }
  276. }
  277. public static void SetBulletType(int clientIndex, Byte[] Bullet)
  278. {
  279. SetMemoryClient(Offset_5, Bullet, (UInt32)clientIndex);
  280. SetMemoryClient(Offset_6, new Byte[] { 0xFF }, (UInt32)clientIndex);
  281. }
  282. }
  283. }
  284. #endregion
  285. //How to spawn?
  286. //BulletType(dataGridView1.CurrentRow.Index, "VTOL Bullet"); //- To Spawn VTOL Bullet
  287. //Exmple in numericUpDown = BulletType((int)numericUpDown1.Value, "VTOL Bullet");
  288. //Dont use "Test" ,its freeze the ps3.
  289. //Have Fun ;)
  290. //Thanks to Shark - Function, Unknuawn - Big thanks to him :-)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement