Post: All Clients Buttons Monitoring (C# / 1.13)
10-29-2013, 10:00 PM #1
seb5594
Proud Former Admin
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU,

Quick Release for Today, someone asked me for a Buttons Monitoring for BO1 cause i released yesterday Hud Elements.
Add this somewhere to your Project


    
public class Buttons
{
public static UInt32
X = 2104320,
O = 512,
Square = 67108864,
Triangle = 8,
L3 = 1074003968,
R3 = 536870912,
L2 = 72704,
R2 = 131072,
L1 = 1048704,
R1 = 2147483648,
Crouch = 4194304,
Prone = 8388608,
StartButton = 4;
}
public Boolean ButtonPressed(Int32 clientIndex, UInt32 Button)
{
if (PS3Lib.ReadUInt32((UInt32)G_Client(clientIndex) + 0x271Cool Man (aka Tustin) == Button)
return true;
else return false;
}
public Int32 G_Client(Int32 clientIndex)
{
return (Int32)0x13950C8 + 0x2A38 * clientIndex;
}
public static UInt32 ReadUInt32(uint offset)
{
Byte[] YoLo= GetMemory(offset, 4);
Array.Reverse(YoLo, 0, 4);
return BitConverter.ToUInt32(YoLo, 0);
}


If you have not Chocos GetMemory Function, here is it
    public byte[] GetMemory(uint address, int length)
{
byte[] buffer = new byte[length];
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, processID, 0L, (ulong)address, ref buffer);
return buffer;
}


How you can use it (Use a Timer!)
Syntax of this Function
            private void TestButtons()
{
if (ButtonPressed(0, Buttons.X))
MessageBox.Show("Client 0 Pressed X");
}


Credits:
seb5594 - Creating this Function
MegaMister - Fixed Buttons Values
Anera - G_Client Offset and Button Offset
iMCSx - PS3Lib for ReadUInt32 Function
(adsbygoogle = window.adsbygoogle || []).push({});

The following 9 users say thank you to seb5594 for this useful post:

AlexNGU, Authority Modz, EdiTzZ, lollo1000, John, SnaY, worrorfight, xPAQz, zZHackzZ
10-29-2013, 10:01 PM #2
SnaY
Former Lead of GS
You are doing a great job seb :p Keep it up Happy
10-29-2013, 10:10 PM #3
Nice!
10-30-2013, 04:18 PM #4
makeabce
I defeated!
Originally posted by seb5594 View Post
Hey NGU,

Quick Release for Today, someone asked me for a Buttons Monitoring for BO1 cause i released yesterday Hud Elements.
Add this somewhere to your Project


    
public class Buttons
{
public static UInt32
X = 1843200,
O = 147456,
Square = 4,
Triangle = 134217728,
L3 = 1088,
R3 = 32,
L2 = 131328,
R2 = 512,
L1 = 2147487744,
R1 = 128,
Crouch = 16384,
Prone = 32768,
StartButton = 67108864;
}
public Boolean ButtonPressed(Int32 clientIndex, UInt32 Button)
{
if (PS3Lib.ReadUInt32((UInt32)G_Client(clientIndex) + 0x271Cool Man (aka Tustin) == Button)
return true;
else return false;
}
public Int32 G_Client(Int32 clientIndex)
{
return (Int32)0x13950C8 + 0x2A38 * clientIndex;
}
public static UInt32 ReadUInt32(uint offset)
{
Byte[] YoLo= GetMemory(offset, 4);
Array.Reverse(YoLo, 0, 4);
return BitConverter.ToUInt32(YoLo, 0);
}


If you have not Chocos GetMemory Function, here is it
    public byte[] GetMemory(uint address, int length)
{
byte[] buffer = new byte[length];
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, processID, 0L, (ulong)address, ref buffer);
return buffer;
}


How you can use it (Use a Timer!)
Syntax of this Function
            private void TestButtons()
{
if (ButtonPressed(0, Buttons.X))
MessageBox.Show("Client 0 Pressed X");
}


Credits:
seb5594 - Creating this Function
Anera - G_Client Offset and Button Offset
iMCSx - PS3Lib for ReadUInt32 Function


Thank you! Finally!
10-31-2013, 02:05 PM #5
seb5594
Proud Former Admin
Originally posted by makeabce View Post
Thank you! Finally!


no problem man Smile
10-31-2013, 04:19 PM #6
makeabce
I defeated!
Originally posted by seb5594 View Post
no problem man Smile


Possible to add cBuf_AddText function to your Hudelems + sv_gamesendservercommand? Woot
It would be perfect for making RTM "Say Menus" HappyDDD
10-31-2013, 06:01 PM #7
seb5594
Proud Former Admin
Originally posted by makeabce View Post
Possible to add cBuf_AddText function to your Hudelems + sv_gamesendservercommand? Woot
It would be perfect for making RTM "Say Menus" HappyDDD


Should be possible but you know it works only for Host? :S
11-01-2013, 04:56 AM #8
the next thing we need for this game is a good force host
11-01-2013, 08:42 PM #9
makeabce
I defeated!
Originally posted by seb5594 View Post
Should be possible but you know it works only for Host? :S


cBuf_Addtext works for local clients only(even non-host) also in mw3
11-02-2013, 04:50 PM #10
SC58
Former Staff
Originally posted by milky4444 View Post
the next thing we need for this game is a good force host


u cant do a good force host on bo1 i tryed and what u got now is the best u can do

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo