Post: [RELEASE] Modern Warfare 3 - Buttons Monitoring All Clients
04-10-2013, 07:25 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hello!

I'll not write the same things like i've do in the Black Ops 2 Thread's (You must login or register to view this content.) , but like you could see it's a bit the same code for black ops 2. Just i have change all unsigned int for buttons and some offsets because black ops 2 is a bit different.

    
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Buttons_Monitoring_All_Clients
{

// Made by iMCSx for Playstation 3.
// Credit to : Im A Hooker (Se7enSins) , for his Xbox Mw2 Release.
// Youtube.com/iMCSx - Nextgenupdate.com - www.FrenchModdingTeam.com

public partial class Form1 : Form
{
// Define Custom Timer (I don't like use this, i use a custom hard way)
// It is ok for test and use for fun
private Timer StartiMCSxButtons = new Timer();

public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{

}

public class Buttons
{
//Define Buttons For Modern Warfare 3
public static uint
X = 1024,
O = 512,
Square = 2097152,
L3 = 139264,
R3 = 262144,
L2 = 32768,
R2 = 16384,
Start = 128,
L1 = 2056,
R1 = 65536,
Crouch = 512,
Prone = 256;
}

public class PS3Types
{
// Create Connect Types
public static int StartButton;
public static byte[] BIND = new byte[4];
public static uint[] processIDs;
public static uint ProcessID;
}

public void ConnectAttach()
{
try
{
PS3TMAPI.InitTargetComms();
PS3TMAPI.Connect(0, null);
PS3TMAPI.GetProcessList(0, out PS3Types.processIDs);
ulong uProcess = PS3Types.processIDs[0];
PS3Types.ProcessID = Convert.ToUInt32(uProcess);
PS3TMAPI.ProcessAttach(0, PS3TMAPI.UnitType.PPU, PS3Types.ProcessID);
PS3TMAPI.ProcessContinue(0, PS3Types.ProcessID);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}

private uint getPlayerState(int clientIndex)
{
// Get the playerState from entities.
byte[] iMCSxDest = new byte[4];
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, PS3Types.ProcessID, 0, 0x000FCA280 + ((uint)clientIndex * 0x280) + 0x158, ref iMCSxDest);
Array.Reverse(iMCSxDest);
uint Next = BitConverter.ToUInt32(iMCSxDest, 0);
return Next;
}

private uint UseButtonMonitoring(int client)
{
// Get buttons value.
return (getPlayerState(client) + 0x3609);
}

private uint DetectButton(int clientID)
{
// Reverse Byte[] to UInt32 and detect them.
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, PS3Types.ProcessID, 0, UseButtonMonitoring(clientID), ref PS3Types.BIND);
return System.BitConverter.ToUInt32(PS3Types.BIND, 0);
}

private void button1_Click(object sender, EventArgs e)
{
ConnectAttach(); // Connect First your debug.
StartiMCSxButtons.Interval = 300;
StartiMCSxButtons.Enabled = true;
StartiMCSxButtons.Tick += StartiMCSxButtons_Tick;
StartiMCSxButtons.Start(); // Start Event.
}

private void button2_Click(object sender, EventArgs e)
{
StartiMCSxButtons.Enabled = false;
StartiMCSxButtons.Stop(); // Stop Event.
}

void StartiMCSxButtons_Tick(object sender, EventArgs e)
{
uint client0 = DetectButton(0); // Must be in a loop.
uint client1 = DetectButton(1); // Exemple Other Client

if (client0 == Buttons.X)
MessageBox.Show("Client 0 Press the buttons X !");
if (client0 == Buttons.R1 + Buttons.L1) // Example 2 Buttons Pressed in the same moment.
MessageBox.Show("Client 0 Press the buttons R1 + L1 !");
if (client1 == Buttons.X)
MessageBox.Show("Client 1 Press the buttons X !");
}
}
}




This method work for all Call of duty. If you want find this for Black Ops 1 or Modern Warfare 2 , you'll need to find the g_entity for these game , and check if all value for buttons change. For get a value you could do this in a timer :

    
uint client0 = DetectButton(0);
if (client0 != 00000000)
MessageBox.Show("Value: " + client0.ToString());


Credit : Im A Hooker , For his mw2 xbox release base.

Don't forget to check the Black Ops 2 Thread's You must login or register to view this content. for more explanation.

Have Fun.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 22 users say thank you to iMCSx for this useful post:

-Walk-, Ansity., BaSs_HaXoR, YouAppreciateMe, FAKA_ELITE, FM|T Enstone, FM|T xDevOpS, FM|T ZoRo, Gendjisan, HolyCreepsHacks, iMrDannyModz, KoS_Riitalo, Mango_Knife, MW2TopTenWORLD, Nosawilsno15, O-H, SC58, ShutTheCrunchUp, SnaY, Steeve, Whos Your Host, xePixTvx

The following user groaned iMCSx for this awful post:

Alexon
07-31-2013, 12:51 PM #11
connerthefatbas
Do a barrel roll!
Nice IMCSx Your The Best That Guys Trying To Out Smart You LOL Happy
07-31-2013, 09:05 PM #12
CyberNomadic
Web Developer
Well somebody bumped this thread. Haha guess I got lucky because I was looking for it :y:
08-01-2013, 12:25 PM #13
Harry
Former Staff
Nice man, this is awesome!^^.

You always have some incredible releases, keep it up =3.
08-02-2013, 02:25 AM #14
xKAoS_ZeUs
Do a barrel roll!
I dont understand what this does
08-12-2013, 10:05 AM #15
muito bom
01-01-2014, 12:23 AM #16
Nice :yes:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo