Post: [UPDATED]Black Ops 2 - Buttons Monitoring All Clients
07-21-2013, 01:44 AM #1
SC58
Former Staff
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU a while back on 1.08 iMCSx released Buttons Monitoring for all client so i updated it to 1.13 so people can make binds or all client menus ect.

[I DIDNT MAKE THIS CODE, THIS IS iMCSx C# CODE CREDIT TO HIM FOR RELEASING IT ON 1.08 You must login or register to view this content.]

    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 (*********) , 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 Black Ops II
public static uint
X = 8192,
O = 16384,
Square = 4,
L3 = 1088,
R3= 32,
L2 = 256,
R2 = 512,
L1 = 2147487744,
R1 = 128,
Crouch = 16384,
Prone = 32768;
}

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, 0x016B4D2C + ((uint)clientIndex * 0x31C) + 0x154, ref iMCSxDest);
Array.Reverse(iMCSxDest);
uint Next = BitConverter.ToUInt32(iMCSxDest, 0);
return Next;
}

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

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); // Example 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 !");
}
}
}


All credit go to iMCSx and Im A Hooker and Me but i just updated it to 1.12 and DexModderFTW for testing to know if it works on 1.13
(adsbygoogle = window.adsbygoogle || []).push({});

The following 11 users say thank you to SC58 for this useful post:

BayAreaLobbies, ChromeVisionz, Chxii, ResistTheJamsha, Kurt, Mango_Knife, O-H, Soldier., x_GeRaRD-8, zZHackzZ
07-21-2013, 05:23 PM #11
SC58
Former Staff
Originally posted by BLiNDzZ View Post
Found this yesterday :P


its not hard all u have to do it update one offset
07-21-2013, 05:24 PM #12
SC58
Former Staff
Originally posted by therifboy View Post
Are you sure about the 0x569C? I thought it was 0x5808. I might be wrong though.


everything i posted is right
07-21-2013, 05:44 PM #13
seb5594
Proud Former Admin
Originally posted by therifboy View Post
Are you sure about the 0x569C? I thought it was 0x5808. I might be wrong though.


0x5808 is correct, but its g_clients. This is Playerstate and have a other intervall Smile

The following user thanked seb5594 for this useful post:

therifboy
07-21-2013, 06:46 PM #14
Sonoro
I like anteaters
Originally posted by BLiNDzZ View Post
Found this yesterday :P


omg ur so l33t

The following user thanked Sonoro for this useful post:

07-21-2013, 07:02 PM #15
BLiNDzZ
Who’s Jim Erased?
Originally posted by xSonoro View Post
omg ur so l33t

Sonoro :mad: ive been meaning to ask you about your crypter Smile
07-21-2013, 07:12 PM #16
Sonoro
I like anteaters
Originally posted by BLiNDzZ View Post
Sonoro :mad: ive been meaning to ask you about your crypter Smile


didnt u make urs yesterday yet
07-21-2013, 07:13 PM #17
BLiNDzZ
Who’s Jim Erased?
Originally posted by xSonoro View Post
didnt u make urs yesterday yet


If you dont believe me ask Tustin i asked him if it was correct
07-24-2013, 08:07 AM #18
SC58
Former Staff
Updated to 1.13

The following user thanked SC58 for this useful post:

O-H

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo