Advertisement
ScriptzMoDz

MW3 Spec Ops Mods

Aug 25th, 2014
523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 7.16 KB | None | 0 0
  1.                .oooooo.    .oooooo..o oooooooooo.  oooo    oooo                  
  2.                d8P'  `Y8b  d8P'    `Y8 `888'   `Y8b `888   .8P'                    
  3.   oooo    ooo 888          Y88bo.       888     888  888  d8'    oooo    ooo      
  4.   `88b..8P'  888           `"Y8888o.   888oooo888'  88888[       `88b..8P'        
  5.     Y888'    888               `"Y88b  888    `88b  888`88b.       Y888'          
  6.   .o8"'88b   `88b    ooo  oo     .d8P  888    .88P  888  `88b.   .o8"'88b        
  7.  o88'   888o  `Y8bood8P'  8""88888P'  o888bood8P'  o888o  o888o o88'   888o      
  8.                                                                                  
  9.                                                                                  
  10.                                                                                  
  11.   .oooooo..o                                       .oooooo.                      
  12.  d8P'    `Y8                                      d8P'  `Y8b                      
  13.  Y88bo.      oo.ooooo.   .ooooo.   .ooooo.       888      888 oo.ooooo.   .oooo.o
  14.   `"Y8888o.   888' `88b d88' `88b d88' `"Y8      888      888  888' `88b d88(  "8
  15.       `"Y88b  888   888 888ooo888 888            888      888  888   888 `"Y88b.  
  16.  oo     .d8P  888   888 888    .o 888   .o8      `88b    d88'  888   888 o.  )88b
  17.  8""88888P'   888bod8P' `Y8bod8P' `Y8bod8P'       `Y8bood8P'   888bod8P' 8""888P'
  18.               888                                              888                
  19.              o888o                                            o888o      
  20.  
  21.  
  22. IF YOU USE ANY OF THE MODS GIVE CREDITS TO "xCSBKx"!
  23. www.YouTube.com/GMTPS3
  24.  
  25.  
  26. public static string DPAD_IsDown(uint Client)
  27.        {
  28.            string key = PS3.ReadString(0x018c47d2 + (Client* 0);
  29.            string KeyPressed = "";
  30.            if (key == "16")
  31.                KeyPressed = "KEINER";
  32.            else if (key == "15")
  33.                KeyPressed = "Up";
  34.            else if (key == "17")
  35.                KeyPressed = "Down";
  36.            else if (key == "19")
  37.                KeyPressed = "Left";
  38.            else if (key == "21")
  39.                KeyPressed = "Right";
  40.            else
  41.                KeyPressed = key;
  42.            return KeyPressed;
  43.        }
  44.  
  45. public static string Key_IsDown(uint Client)
  46.        {
  47.            byte[] buffer = new byte[5];
  48.            PS3.GetMemory(0x012320E2 + (Client * 0xB0C8),  buffer);
  49.            string mystring = null;
  50.            mystring = BitConverter.ToString(buffer);
  51.            string result = mystring.Replace("-", "");
  52.            string result1 = result.Replace(" ", "");
  53.  
  54.            string key = result1;
  55.            string KeyPressed = "";
  56.            if (key == "0000000000")
  57.                KeyPressed = "KEINER";
  58.            else if (key == "0400000004")
  59.                KeyPressed = "X";
  60.            else if (key == "0020000000")
  61.                KeyPressed = "[]";
  62.            else if (key == "0200000002")
  63.                KeyPressed = "HOCKEN";
  64.            else if (key == "0100000001")
  65.                KeyPressed = "LIEGEN";
  66.            else if (key == "2002000020")
  67.                KeyPressed = "R3";
  68.            else if (key == "002002")
  69.                KeyPressed = "L3";
  70.            else if (key == "00040000000")
  71.                KeyPressed = "R2";
  72.            else if (key == "4000000040")
  73.                KeyPressed = "L2";
  74.            else if (key == "0800000808")
  75.                KeyPressed = "L1";
  76.            else if (key == "0001000000")
  77.                KeyPressed = "R1";
  78.            else if (key == "2006000020")
  79.                KeyPressed = "R3 + L3";
  80.            else if (key == "C0000000C0")
  81.                KeyPressed = "Prone + R2 + L2";
  82.            else if (key == "C2000000C2")
  83.                KeyPressed = "R2 + L2";
  84.            else
  85.                KeyPressed = key;
  86.            return KeyPressed;
  87.        }
  88.  
  89. public static void GodMode(uint Client)
  90.            {
  91.                PS3.SetMemory(0x012272ea + (Client * 0xB0C8), new byte[] { 0x00, 0x15 });
  92.                PS3.SetMemory(0x010EEC28 + (Client * 0xB0C8), new byte[] { 0x00, 0x00, 0x00, 0x00, 0x00 });
  93.                PS3.SetMemory(0x010EEC28 + (Client * 0xB0C8), new byte[] { 0x64, 0xFF,0xFF,0xFF,0xFF });
  94.            }
  95.  
  96.            public static void AllPerks(uint Client)
  97.            {
  98.                PS3.SetMemory(0x01227788 + (Client * 0xB0C8), new byte[] { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF });
  99.            }
  100.  
  101. public static void mFlag(uint Client, string Type)
  102.            {
  103.                if (Type == "Freeze")
  104.                    PS3.SetMemory(0x012320df + (Client * 0xB0C8), new byte[] { 0x04 });
  105.                else if (Type == "NoClip")
  106.                    PS3.SetMemory(0x012320df + (Client * 0xB0C8), new byte[] { 0x02 });
  107.                else if (Type == "Ufo")
  108.                    PS3.SetMemory(0x012320df + (Client * 0xB0C8), new byte[] { 0x01 });
  109.                else if (Type == "Normal")
  110.                    PS3.SetMemory(0x012320df + (Client * 0xB0C8), new byte[] { 0x00 });
  111.            }
  112.  
  113. public static void cBuf_AddText(string Command)
  114.        {
  115.            PS3.WriteString(0x2000000, Command);
  116.            PS3.SetMemory(0x262b28, new byte[] { 0x38, 0x60, 0, 0, 60, 0x80, 2, 0, 0x4b, 0xf9, 0xe9, 0x59 });
  117.            Thread.Sleep(15);
  118.            PS3.SetMemory(0x2000000, new byte[100]);
  119.            PS3.SetMemory(0x262b28, new byte[] { 60, 0x60, 1, 0xda, 0x80, 0x63, 0xe1, 0xcc, 0x88, 0x63, 0, 8 });
  120.        }
  121.  
  122.            public static void Speed(int Value)
  123.            {
  124.                cBuf_AddText("g_speed " + Value);
  125.            }
  126.  
  127.            public static void ResetSpeed()
  128.            {
  129.                cBuf_AddText("reset g_speed");
  130.            }
  131.  
  132.            public static void Jump(int Value)
  133.            {
  134.                cBuf_AddText("jump_height " + Value);
  135.            }
  136.  
  137.            public static void ResetJump()
  138.            {
  139.                cBuf_AddText("reset jump_height");
  140.            }
  141.  
  142.            public static void Gravity(int Value)
  143.            {
  144.                cBuf_AddText("g_gravity " + Value);
  145.            }
  146.  
  147.            public static void ResetGravity()
  148.            {
  149.                cBuf_AddText("reset g_gravity");
  150.            }
  151.  
  152.            public static void Timescale(int Value)
  153.            {
  154.                cBuf_AddText("Timescale " + Value);
  155.            }
  156.  
  157.            public static void ResetTimescale()
  158.            {
  159.                cBuf_AddText("reset Timescale");
  160.            }
  161.  
  162.        public static void SetDebugLocalString(string Text)
  163.        {
  164.            cBuf_AddText("set ui_debug_localVarString " + Text);
  165.        }
  166.  
  167.        public static void SetDebugLocalBool(string Text)
  168.        {
  169.            cBuf_AddText("set ui_debug_localVarBool " + Text);
  170.        }
  171.  
  172. 0x2D0788 - maprestart
  173. 0x123D468 - G_Client
  174. 0x10EEAD8 - G_Entity
  175. 0x145B34 - Add_Ammo
  176. 0x18E3BC - G_GivePlayerWeapon
  177. 0x6D798 - no reocil nop
  178. 0x2BF4D4 - steady aim 00
  179. 0x2B0E84 - full auto 39, 60, 00, 00
  180. 0x67EBC - laser
  181. 0x201488 - Cbuf_AddText
  182. 0x279F18 - Dvar_GetBool
  183. 0x281470 - Va
  184. 0x2D94C8 - Sv_GameSendServerCommand
  185. 0x386200 - R_SetFrameFog
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement