Post: [Script/RTM] All Client Dpad Monitoring
02-12-2014, 12:17 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I don't know if people even make menus for this game anymore, but if you wanted to, I suggest using this button monitoring if you wanted it to be like a 1.11 menu because you can monitor dpads using this! It's pretty cool I guess. To use this you will need PS3Lib v4 from Imcsx.

Script

    
public class Buttonz
{
public static string
DpadUp = "+actionslot 1",
DpadDown = "+actionslot 2",
DpadRight = "+actionslot 4",
DpadLeft = "+actionslot 3",
Cross = "+gostand",
Circle = "+stance",
Triangle = "weapnext",
Square = "+usereload",
R3 = "+melee",
R2 = "+frag",
R1 = "+attack",
L3 = "+breath_sprint",
L2 = "+smoke",
L1 = "+speed_throw",
Select = "togglescores",
Start = "togglemenu";
}
public bool ButtonPressed(int client, string Button)
{
if (PS3.Extension.ReadString(0x34750E9F + ((uint)client * 0x97F80)) == Button)
return true;
else return false;
}


And if you don't know how to use it, just put it in a timer or background worker like this

    
if (ButtonPressed(7, Buttonz.Cross))
MessageBox.Show("Client 7 is pressing Cross");
else if (ButtonPressed(0, Buttonz.DpadRight))
MessageBox.Show("Client 0 is pressing dpad right");


I will update this thread with the offline version in a bit...

Credits to SC58 for the dword for client_s on mw2 Smile
Last edited by Black Panther ; 02-12-2014 at 08:19 PM. Reason: Credits

The following 3 users say thank you to Black Panther for this useful post:

Dannie Fresh, ItsLollo1000, Notorious
02-12-2014, 03:45 AM #2
Dannie Fresh
Bounty hunter
Originally posted by AlmightySo View Post
I don't know if people even make menus for this game anymore, but if you wanted to, I suggest using this button monitoring if you wanted it to be like a 1.11 menu because you can monitor dpads using this! It's pretty cool I guess. To use this you will need PS3Lib v4 from Imcsx.

Script

    
public class Buttonz
{
public static string
DpadUp = "+actionslot 1",
DpadDown = "+actionslot 2",
DpadRight = "+actionslot 4",
DpadLeft = "+actionslot 3",
Cross = "+gostand",
Circle = "+stance",
Triangle = "weapnext",
Square = "+usereload",
R3 = "+melee",
R2 = "+frag",
R1 = "+attack",
L3 = "+breath_sprint",
L2 = "+smoke",
L1 = "+speed_throw",
Select = "togglescores",
Start = "togglemenu";
}
public bool ButtonPressed(int client, string Button)
{
if (PS3.Extension.ReadString(0x34750E9F + ((uint)client * 0x97F80)) == Button)
return true;
else return false;
}


And if you don't know how to use it, just put it in a timer or background worker like this

    
if (ButtonPressed(7, Buttonz.Cross))
MessageBox.Show("Client 7 is pressing Cross");
else if (ButtonPressed(0, Buttonz.DpadRight))
MessageBox.Show("Client 0 is pressing dpad right");


I will update this thread with the offline version in a bit...


thanks for that man :yes:

The following user thanked Dannie Fresh for this useful post:

02-12-2014, 08:16 PM #3
SC58
Former Staff
no credit i see how it is :|
02-12-2014, 08:18 PM #4
Originally posted by SC58 View Post
no credit i see how it is :|

Oh sorry man, I forgot here Smile
02-21-2014, 03:31 PM #5
The client_s dword is the same for everything but the offline private match and public match offsets are all different. You are clearly only using one offset which will make the menu only work in im guessing that private match. If you want it to be a good script. have it monitor both offsets.

Example

public bool ButtonPressed(int client, string Button)
{
if (PS3.Extension.ReadString(0x34750E9F + ((uint)client * 0x97F80)) == Button)
return true;
else if (PS3.Extension.ReadString(publicoffset + ((uint)client * 0x97F80)) == Button)
return true;
else return false;
}
02-21-2014, 03:35 PM #6
Originally posted by AlmightySo View Post
I don't know if people even make menus for this game anymore, but if you wanted to, I suggest using this button monitoring if you wanted it to be like a 1.11 menu because you can monitor dpads using this! It's pretty cool I guess. To use this you will need PS3Lib v4 from Imcsx.

Script

    
public class Buttonz
{
public static string
DpadUp = "+actionslot 1",
DpadDown = "+actionslot 2",
DpadRight = "+actionslot 4",
DpadLeft = "+actionslot 3",
Cross = "+gostand",
Circle = "+stance",
Triangle = "weapnext",
Square = "+usereload",
R3 = "+melee",
R2 = "+frag",
R1 = "+attack",
L3 = "+breath_sprint",
L2 = "+smoke",
L1 = "+speed_throw",
Select = "togglescores",
Start = "togglemenu";
}
public bool ButtonPressed(int client, string Button)
{
if (PS3.Extension.ReadString(0x34750E9F + ((uint)client * 0x97F80)) == Button)
return true;
else return false;
}


And if you don't know how to use it, just put it in a timer or background worker like this

    
if (ButtonPressed(7, Buttonz.Cross))
MessageBox.Show("Client 7 is pressing Cross");
else if (ButtonPressed(0, Buttonz.DpadRight))
MessageBox.Show("Client 0 is pressing dpad right");


I will update this thread with the offline version in a bit...

Credits to SC58 for the dword for client_s on mw2 Smile


also what people dont realize is this code is so much harder than it seems... people dont realize that if you have presset +actionslot 1 then you press +gostand it will read the string as +gostandlot 1 not just +gostand. i have the code but it took me literally like 2 weeks to get im not just going to give it out.
02-22-2014, 07:36 PM #7
Originally posted by xFatalCoder View Post
also what people dont realize is this code is so much harder than it seems... people dont realize that if you have presset +actionslot 1 then you press +gostand it will read the string as +gostandlot 1 not just +gostand. i have the code but it took me literally like 2 weeks to get im not just going to give it out.


What... That doesn't even matter. This works perfectly...
02-23-2014, 02:00 AM #8
Notorious
Caprisuns Is Back
Originally posted by AlmightySo View Post
I don't know if people even make menus for this game anymore, but if you wanted to, I suggest using this button monitoring if you wanted it to be like a 1.11 menu because you can monitor dpads using this! It's pretty cool I guess. To use this you will need PS3Lib v4 from Imcsx.

Script

    
public class Buttonz
{
public static string
DpadUp = "+actionslot 1",
DpadDown = "+actionslot 2",
DpadRight = "+actionslot 4",
DpadLeft = "+actionslot 3",
Cross = "+gostand",
Circle = "+stance",
Triangle = "weapnext",
Square = "+usereload",
R3 = "+melee",
R2 = "+frag",
R1 = "+attack",
L3 = "+breath_sprint",
L2 = "+smoke",
L1 = "+speed_throw",
Select = "togglescores",
Start = "togglemenu";
}
public bool ButtonPressed(int client, string Button)
{
if (PS3.Extension.ReadString(0x34750E9F + ((uint)client * 0x97F80)) == Button)
return true;
else return false;
}


And if you don't know how to use it, just put it in a timer or background worker like this

    
if (ButtonPressed(7, Buttonz.Cross))
MessageBox.Show("Client 7 is pressing Cross");
else if (ButtonPressed(0, Buttonz.DpadRight))
MessageBox.Show("Client 0 is pressing dpad right");


I will update this thread with the offline version in a bit...

Credits to SC58 for the dword for client_s on mw2 Smile


so if i wanted to use this type of button monotoring
if (key == "000000")
{
KeyPressed = "NONE";

}
else if (key == "00 20 00 00")
{
KeyPressed = "X";


}

i would replace the numbers in the quote for lets say +gostand or no?
02-23-2014, 07:19 PM #9
Originally posted by Prime
so if i wanted to use this type of button monotoring
if (key == "000000")
{
KeyPressed = "NONE";

}
else if (key == "00 20 00 00")
{
KeyPressed = "X";


}

i would replace the numbers in the quote for lets say +gostand or no?


I guess but why would you do that lol
02-23-2014, 07:41 PM #10
Notorious
Caprisuns Is Back
Originally posted by AlmightySo View Post
I guess but why would you do that lol


i like that kind of button monitoring better Winky Winky

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo