Advertisement
Mango_Knife

Mw3 Key_IsDown - Special Ops

Apr 27th, 2014
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.60 KB | None | 0 0
  1.             #region Key_IsDown
  2.             public static string Key_IsDown(uint ClientNum)
  3.             {
  4.                 uint NameInGame = 0x012320bc;
  5.                 uint Key_isDown = 0x01232075;
  6.                 uint Index = 0xB0C8;
  7.                 byte[] Key = new byte[3];
  8.                 GetMemoryR(Key_isDown + (Index * ClientNum), ref Key);
  9.                 string mystring = null;
  10.                 mystring = BitConverter.ToString(Key);
  11.                 string result = mystring.Replace("-", "");
  12.                 string result1 = result.Replace(" ", "");
  13.                 string key = result1;
  14.                 string KeyPressed = "";
  15.                 if (key == "000000")
  16.                 {
  17.                     KeyPressed = "Stand";
  18.                 }
  19.                 else if (key == "080C20")
  20.                 {
  21.                     KeyPressed = "[ ] + X + L1";
  22.                 }
  23.                 else if (key == "000224")
  24.                 {
  25.                     KeyPressed = "Crouch + R3 + [ ]";
  26.                 }
  27.                 else if (key == "008001")
  28.                 {
  29.                     KeyPressed = "R1 + L2";
  30.                 }
  31.                 else if (key == "082802")
  32.                 {
  33.                     KeyPressed = "L1 + L3";
  34.                 }
  35.                 else if (key == "002402")
  36.                 {
  37.                     KeyPressed = "X + L3";
  38.                 }
  39.                 else if (key == "000020")
  40.                 {
  41.                     KeyPressed = "[  ]";
  42.                 }
  43.                 else if (key == "000200")
  44.                 {
  45.                     KeyPressed = "Crouch";
  46.                 }
  47.                 else if (key == "004020")
  48.                 {
  49.                     KeyPressed = "R2 + [ ]";
  50.                 }
  51.                 else if (key == "000220")
  52.                 {
  53.                     KeyPressed = "[ ] + Crouch";
  54.                 }
  55.                 else if (key == "000100")
  56.                 {
  57.                     KeyPressed = "Prone";
  58.                 }
  59.                 else if (key == "400100")
  60.                 {
  61.                     KeyPressed = "Left + Prone";
  62.                 }
  63.                 else if (key == "000400")
  64.                 {
  65.                     KeyPressed = "X";
  66.                 }
  67.                 else if (key == "000004")
  68.                 {
  69.                     KeyPressed = "R3";
  70.                 }
  71.                 else if (key == "002002")
  72.                 {
  73.                     KeyPressed = "L3";
  74.                 }
  75.                 else if (key == "004000")
  76.                 {
  77.                     KeyPressed = "R2";
  78.                 }
  79.                 else if (key == "008000")
  80.                 {
  81.                     KeyPressed = "L2";
  82.                 }
  83.                 else if (key == "080800")
  84.                 {
  85.                     KeyPressed = "L1";
  86.                 }
  87.                 else if (key == "000001")
  88.                 {
  89.                     KeyPressed = "R1";
  90.                 }
  91.                 else if (key == "002006")
  92.                 {
  93.                     KeyPressed = "R3 + L3";
  94.                 }
  95.                 else if (key == "000204")
  96.                 {
  97.                     KeyPressed = "R3";
  98.                 }
  99.                 else if (key == "002202")
  100.                 {
  101.                     KeyPressed = "L3";
  102.                 }
  103.                 else if (key == "004200")
  104.                 {
  105.                     KeyPressed = "R2";
  106.                 }
  107.                 else if (key == "008004")
  108.                 {
  109.                     KeyPressed = "R3 + L2";
  110.                 }
  111.                 else if (key == "008200")
  112.                 {
  113.                     KeyPressed = "L2";
  114.                 }
  115.                 else if (key == "082902")
  116.                 {
  117.                     KeyPressed = "Prone + L1 + L3";
  118.                 }
  119.                 else if (key == "082906")
  120.                 {
  121.                     KeyPressed = "Prone + L1 + L3 + R3";
  122.                 }
  123.                 else if (key == "00C100")
  124.                 {
  125.                     KeyPressed = "Prone + R2 + L2";
  126.                 }
  127.                 else if (key == "00C000")
  128.                 {
  129.                     KeyPressed = "R2 + L2";
  130.                 }
  131.                 else if (key == "002206")
  132.                 {
  133.                     KeyPressed = "Crouch L3 + R3";
  134.                 }
  135.                 else if (key == "002222")
  136.                 {
  137.                     KeyPressed = "Crouch L3 + [ ]";
  138.                 }
  139.                 else if (key == "Up")
  140.                 {
  141.                     KeyPressed = "R2 + L2";
  142.                 }
  143.                 else if (key == "002122")
  144.                 {
  145.                     KeyPressed = "Prone + L3 + [ ]";
  146.                 }
  147.                 else if (key == "000420")
  148.                 {
  149.                     KeyPressed = "X + [ ]";
  150.                 }
  151.                 else if (key == "002106")
  152.                 {
  153.                     KeyPressed = "Prone + R3 + L3";
  154.                 }
  155.                 else
  156.                 {
  157.                     KeyPressed = key;
  158.                 }
  159.                 return KeyPressed;
  160.             }
  161.             public static string GetNames(int clientNum)
  162.             {
  163.                 uint NameInGame = 0x012320bc;
  164.                 uint Index = 0xB0C8;
  165.                 string name;
  166.                 byte[] name1 = new byte[18];
  167.                 GetMemoryR(NameInGame + ((uint)clientNum * Index), ref name1);
  168.                 name = Encoding.ASCII.GetString(name1);
  169.                 name.Replace(Convert.ToChar(0x0).ToString(), string.Empty);
  170.                 return name;
  171.             }
  172.             #endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement